org.apache.xml.security.keys.keyresolver
public class KeyResolver extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected KeyResolverSpi |
_resolverSpi
Field _resolverSpi
|
protected StorageResolver |
_storage
Field _storage
|
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 void |
hit(java.util.Iterator hintI)
This method is called when a KeyResolver is successful
with the hope that this information can improve performance.
|
static void |
init()
The init() function is called by org.apache.xml.security.Init.init()
|
static java.util.Iterator |
iterator() |
static int |
length()
Method length
|
static void |
register(java.lang.String className)
This method is used for registering
KeyResolverSpi s which are
available to all KeyInfo objects. |
static void |
registerAtStart(java.lang.String className)
This method is used for registering
KeyResolverSpi s which are
available to all KeyInfo objects. |
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
|
protected KeyResolverSpi _resolverSpi
protected StorageResolver _storage
public static int length()
public static void hit(java.util.Iterator hintI)
hintI
- 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 init()
public static void register(java.lang.String className) 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)
.className
- java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static void registerAtStart(java.lang.String className)
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)
.className
- 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 iterator()
Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.