Package org.apache.poi.poifs.crypt.dsig
Class KeyInfoKeySelector
- java.lang.Object
-
- javax.xml.crypto.KeySelector
-
- org.apache.poi.poifs.crypt.dsig.KeyInfoKeySelector
-
- All Implemented Interfaces:
KeySelectorResult
public class KeyInfoKeySelector extends KeySelector implements KeySelectorResult
JSR105 key selector implementation using the ds:KeyInfo data of the signature itself.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.xml.crypto.KeySelector
KeySelector.Purpose
-
-
Constructor Summary
Constructors Constructor Description KeyInfoKeySelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<X509Certificate>getCertChain()KeygetKey()X509CertificategetSigner()Gives back the X509 certificate used during the last signature verification operation.KeySelectorResultselect(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context)-
Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
-
-
-
-
Method Detail
-
select
public KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) throws KeySelectorException
- Specified by:
selectin classKeySelector- Throws:
KeySelectorException
-
getKey
public Key getKey()
- Specified by:
getKeyin interfaceKeySelectorResult
-
getSigner
public X509Certificate getSigner()
Gives back the X509 certificate used during the last signature verification operation.- Returns:
- the certificate which was used to sign the xml content
-
getCertChain
public List<X509Certificate> getCertChain()
-
-