be.fedict.eid.applet.service.signer
Class KeyInfoKeySelector
java.lang.Object
javax.xml.crypto.KeySelector
be.fedict.eid.applet.service.signer.KeyInfoKeySelector
- All Implemented Interfaces:
- javax.xml.crypto.KeySelectorResult
- Direct Known Subclasses:
- OPCKeySelector
public class KeyInfoKeySelector
- extends javax.xml.crypto.KeySelector
- implements javax.xml.crypto.KeySelectorResult
JSR105 key selector implementation using the ds:KeyInfo data of the signature
itself.
- Author:
- Frank Cornelis
Methods inherited from class javax.xml.crypto.KeySelector |
singletonKeySelector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
certificate
protected X509Certificate certificate
KeyInfoKeySelector
public KeyInfoKeySelector()
select
public javax.xml.crypto.KeySelectorResult select(javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo,
javax.xml.crypto.KeySelector.Purpose purpose,
javax.xml.crypto.AlgorithmMethod method,
javax.xml.crypto.XMLCryptoContext context)
throws javax.xml.crypto.KeySelectorException
- Specified by:
select
in class javax.xml.crypto.KeySelector
- Throws:
javax.xml.crypto.KeySelectorException
getKey
public Key getKey()
- Specified by:
getKey
in interface javax.xml.crypto.KeySelectorResult
getCertificate
public X509Certificate getCertificate()
- Gives back the X509 certificate used during the last signature
verification operation.
- Returns:
Copyright © 2008-2012 FedICT. All Rights Reserved.