public class KeyResolver extends Object
| Constructor and Description |
|---|
KeyResolver() |
| Modifier and Type | Method and Description |
|---|---|
static PublicKey |
getPublicKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method getPublicKey
|
static X509Certificate |
getX509Certificate(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method getX509Certificate
|
static Iterator<KeyResolverSpi> |
iterator() |
static int |
length()
Method length
|
static void |
register(KeyResolverSpi keyResolverSpi,
boolean start)
This method is used for registering
KeyResolverSpis which are
available to all KeyInfo objects. |
static void |
register(String className)
This method is used for registering
KeyResolverSpis which are
available to all KeyInfo objects. |
static void |
registerAtStart(String className)
This method is used for registering
KeyResolverSpis which are
available to all KeyInfo objects. |
static void |
registerClassNames(List<String> classNames)
This method is used for registering
KeyResolverSpis which are
available to all KeyInfo objects. |
static void |
registerDefaultResolvers()
This method registers the default resolvers.
|
public static int length()
public static final X509Certificate getX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionpublic static final PublicKey getPublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionpublic static void register(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException
KeyResolverSpis which are
available to all KeyInfo objects. This means that
personalized KeyResolverSpis 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 - InstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionSecurityException - if a security manager is installed and the
caller does not have permission to register the key resolverpublic static void registerAtStart(String className)
KeyResolverSpis which are
available to all KeyInfo objects. This means that
personalized KeyResolverSpis 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 - SecurityException - if a security manager is installed and the
caller does not have permission to register the key resolverpublic static void register(KeyResolverSpi keyResolverSpi, boolean start)
KeyResolverSpis which are
available to all KeyInfo objects. This means that
personalized KeyResolverSpis 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 notSecurityException - if a security manager is installed and the
caller does not have permission to register the key resolverpublic static void registerClassNames(List<String> classNames) throws ClassNotFoundException, IllegalAccessException, InstantiationException
KeyResolverSpis which are
available to all KeyInfo objects. This means that
personalized KeyResolverSpis 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 - InstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionSecurityException - if a security manager is installed and the
caller does not have permission to register the key resolverpublic static void registerDefaultResolvers()
public static Iterator<KeyResolverSpi> iterator()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.