public class KeyResolver
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String key)
Method getProperty
|
static java.security.PublicKey |
getPublicKey(org.w3c.dom.Element element,
java.lang.String baseURI,
StorageResolver storage)
Method getPublicKey
|
static java.security.cert.X509Certificate |
getX509Certificate(org.w3c.dom.Element element,
java.lang.String baseURI,
StorageResolver storage)
Method getX509Certificate
|
static java.util.Iterator<KeyResolverSpi> |
iterator() |
static int |
length()
Method length
|
static void |
register(KeyResolverSpi keyResolverSpi,
boolean start)
This method is used for registering
KeyResolverSpi s which are
available to all KeyInfo objects. |
static void |
register(java.lang.String className,
boolean globalResolver)
This method is used for registering
KeyResolverSpi s which are
available to all KeyInfo objects. |
static void |
registerAtStart(java.lang.String className,
boolean globalResolver)
This method is used for registering
KeyResolverSpi s which are
available to all KeyInfo objects. |
static void |
registerClassNames(java.util.List<java.lang.String> classNames)
This method is used for registering
KeyResolverSpi s which are
available to all KeyInfo objects. |
static void |
registerDefaultResolvers()
This method registers the default resolvers.
|
java.security.PublicKey |
resolvePublicKey(org.w3c.dom.Element element,
java.lang.String baseURI,
StorageResolver storage)
Method resolvePublicKey
|
java.lang.String |
resolverClassName()
Method resolverClassName
|
javax.crypto.SecretKey |
resolveSecretKey(org.w3c.dom.Element element,
java.lang.String baseURI,
StorageResolver storage) |
java.security.cert.X509Certificate |
resolveX509Certificate(org.w3c.dom.Element element,
java.lang.String baseURI,
StorageResolver storage)
Method resolveX509Certificate
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Method setProperty
|
boolean |
understandsProperty(java.lang.String propertyToTest)
Method understandsProperty
|
public static int length()
public static final java.security.cert.X509Certificate getX509Certificate(org.w3c.dom.Element element, java.lang.String baseURI, StorageResolver storage) throws KeyResolverException
element
- baseURI
- storage
- KeyResolverException
public static final java.security.PublicKey getPublicKey(org.w3c.dom.Element element, java.lang.String baseURI, StorageResolver storage) throws KeyResolverException
element
- baseURI
- storage
- KeyResolverException
public static void register(java.lang.String className, boolean globalResolver) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
KeyResolverSpi
s which are
available to all KeyInfo
objects. This means that
personalized KeyResolverSpi
s should only be registered directly
to the KeyInfo
using
KeyInfo.registerInternalKeyResolver(org.apache.xml.security.keys.keyresolver.KeyResolverSpi)
.
Please note that this method will create a new copy of the underlying array, as the
underlying collection is a CopyOnWriteArrayList.className
- globalResolver
- Whether the KeyResolverSpi is a global resolver or notjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static void registerAtStart(java.lang.String className, boolean globalResolver)
KeyResolverSpi
s which are
available to all KeyInfo
objects. This means that
personalized KeyResolverSpi
s should only be registered directly
to the KeyInfo
using
KeyInfo.registerInternalKeyResolver(org.apache.xml.security.keys.keyresolver.KeyResolverSpi)
.
Please note that this method will create a new copy of the underlying array, as the
underlying collection is a CopyOnWriteArrayList.className
- globalResolver
- Whether the KeyResolverSpi is a global resolver or notpublic static void register(KeyResolverSpi keyResolverSpi, boolean start)
KeyResolverSpi
s which are
available to all KeyInfo
objects. This means that
personalized KeyResolverSpi
s should only be registered directly
to the KeyInfo
using
KeyInfo.registerInternalKeyResolver(org.apache.xml.security.keys.keyresolver.KeyResolverSpi)
.
Please note that this method will create a new copy of the underlying array, as the
underlying collection is a CopyOnWriteArrayList.keyResolverSpi
- a KeyResolverSpi instance to registerstart
- whether to register the KeyResolverSpi at the start of the list or notpublic static void registerClassNames(java.util.List<java.lang.String> classNames) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
KeyResolverSpi
s which are
available to all KeyInfo
objects. This means that
personalized KeyResolverSpi
s should only be registered directly
to the KeyInfo
using
KeyInfo.registerInternalKeyResolver(org.apache.xml.security.keys.keyresolver.KeyResolverSpi)
.
The KeyResolverSpi instances are not registered as a global resolver.classNames
- java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static void registerDefaultResolvers()
public java.security.PublicKey resolvePublicKey(org.w3c.dom.Element element, java.lang.String baseURI, StorageResolver storage) throws KeyResolverException
element
- baseURI
- storage
- KeyResolverException
public java.security.cert.X509Certificate resolveX509Certificate(org.w3c.dom.Element element, java.lang.String baseURI, StorageResolver storage) throws KeyResolverException
element
- baseURI
- storage
- KeyResolverException
public javax.crypto.SecretKey resolveSecretKey(org.w3c.dom.Element element, java.lang.String baseURI, StorageResolver storage) throws KeyResolverException
element
- baseURI
- storage
- KeyResolverException
public void setProperty(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String getProperty(java.lang.String key)
key
- public boolean understandsProperty(java.lang.String propertyToTest)
propertyToTest
- public java.lang.String resolverClassName()
public static java.util.Iterator<KeyResolverSpi> iterator()