Package es.gob.afirma.utils
Class KeyValueSelector
- java.lang.Object
-
- javax.xml.crypto.KeySelector
-
- es.gob.afirma.utils.KeyValueSelector
-
public class KeyValueSelector extends javax.xml.crypto.KeySelectorClass that extends KeySelector to retrieve the public key out of the KeyValue element and returns it. NOTE: If the key algorithm doesn't match the signature algorithm, then the public key will be ignored.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.2, 04/03/2020.
-
-
Constructor Summary
Constructors Constructor Description KeyValueSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.crypto.KeySelectorResultselect(javax.xml.crypto.dsig.keyinfo.KeyInfo keyInfo, javax.xml.crypto.KeySelector.Purpose purpose, javax.xml.crypto.AlgorithmMethod method, javax.xml.crypto.XMLCryptoContext context)
-
-
-
Method Detail
-
select
public final 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:
selectin classjavax.xml.crypto.KeySelector- Throws:
javax.xml.crypto.KeySelectorException
-
-