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
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 -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Gives back the X509 certificate used during the last signature verification operation.select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
-
Constructor Details
-
KeyInfoKeySelector
public KeyInfoKeySelector()
-
-
Method Details
-
select
public KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) throws KeySelectorException - Specified by:
selectin classKeySelector- Throws:
KeySelectorException
-
getKey
- Specified by:
getKeyin interfaceKeySelectorResult
-
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
-