Module org.apache.santuario.xmlsec
Class SecretKeyResolver
- java.lang.Object
-
- org.apache.xml.security.keys.keyresolver.KeyResolverSpi
-
- org.apache.xml.security.keys.keyresolver.implementations.SecretKeyResolver
-
public class SecretKeyResolver extends org.apache.xml.security.keys.keyresolver.KeyResolverSpiResolves a SecretKey within a KeyStore based on the KeyName. The KeyName is the key entry alias within the KeyStore.
-
-
Constructor Summary
Constructors Constructor Description SecretKeyResolver(KeyStore keyStore, char[] password)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanengineCanResolve(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage)This method returns whether the KeyResolverSpi is able to perform the requested action.protected PrivateKeyengineResolvePrivateKey(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation)Method engineResolvePrivateKeyprotected PublicKeyengineResolvePublicKey(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation)Method engineResolvePublicKeyprotected SecretKeyengineResolveSecretKey(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation)Method engineResolveSecretKeyprotected X509CertificateengineResolveX509Certificate(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation)Method engineResolveCertificate
-
-
-
Constructor Detail
-
SecretKeyResolver
public SecretKeyResolver(KeyStore keyStore, char[] password)
Constructor.
-
-
Method Detail
-
engineCanResolve
protected boolean engineCanResolve(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage)
This method returns whether the KeyResolverSpi is able to perform the requested action.- Specified by:
engineCanResolvein classorg.apache.xml.security.keys.keyresolver.KeyResolverSpi- Returns:
- whether the KeyResolverSpi is able to perform the requested action.
-
engineResolvePublicKey
protected PublicKey engineResolvePublicKey(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation) throws org.apache.xml.security.keys.keyresolver.KeyResolverException
Method engineResolvePublicKey- Specified by:
engineResolvePublicKeyin classorg.apache.xml.security.keys.keyresolver.KeyResolverSpi- Returns:
- resolved public key from the registered from the element.
- Throws:
org.apache.xml.security.keys.keyresolver.KeyResolverException
-
engineResolveX509Certificate
protected X509Certificate engineResolveX509Certificate(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation) throws org.apache.xml.security.keys.keyresolver.KeyResolverException
Method engineResolveCertificate- Specified by:
engineResolveX509Certificatein classorg.apache.xml.security.keys.keyresolver.KeyResolverSpi- Returns:
- resolved X509Certificate key from the registered from the elements
- Throws:
org.apache.xml.security.keys.keyresolver.KeyResolverException
-
engineResolveSecretKey
protected SecretKey engineResolveSecretKey(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation) throws org.apache.xml.security.keys.keyresolver.KeyResolverException
Method engineResolveSecretKey- Specified by:
engineResolveSecretKeyin classorg.apache.xml.security.keys.keyresolver.KeyResolverSpi- Returns:
- resolved SecretKey key from the registered from the elements
- Throws:
org.apache.xml.security.keys.keyresolver.KeyResolverException
-
engineResolvePrivateKey
protected PrivateKey engineResolvePrivateKey(Element element, String baseURI, org.apache.xml.security.keys.storage.StorageResolver storage, boolean secureValidation)
Method engineResolvePrivateKey- Specified by:
engineResolvePrivateKeyin classorg.apache.xml.security.keys.keyresolver.KeyResolverSpi- Returns:
- resolved PrivateKey key from the registered from the elements
-
-