Methods Summary |
---|
public boolean | canResolve(org.w3c.dom.Element element, java.lang.String BaseURI, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver storage)Method canResolve
return this._resolverSpi.engineCanResolve(element, BaseURI, storage);
|
public static final com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolver | getInstance(org.w3c.dom.Element element, java.lang.String BaseURI, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver storage)Method getInstance
for (int i = 0; i < KeyResolver._resolverVector.size(); i++) {
KeyResolver resolver=
(KeyResolver) KeyResolver._resolverVector.get(i);
if (resolver==null) {
Object exArgs[] = {
(((element != null)
&& (element.getNodeType() == Node.ELEMENT_NODE))
? element.getTagName()
: "null") };
throw new KeyResolverException("utils.resolver.noClass", exArgs);
}
if (true)
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "check resolvability by class " + resolver.getClass());
if (resolver.canResolve(element, BaseURI, storage)) {
return resolver;
}
}
Object exArgs[] = {
(((element != null) && (element.getNodeType() == Node.ELEMENT_NODE))
? element.getTagName()
: "null") };
throw new KeyResolverException("utils.resolver.noClass", exArgs);
|
public java.lang.String | getProperty(java.lang.String key)Method getProperty
return this._resolverSpi.engineGetProperty(key);
|
public java.lang.String[] | getPropertyKeys()Method getPropertyKeys
return this._resolverSpi.engineGetPropertyKeys();
|
public static void | init()The init() function is called by com.sun.org.apache.xml.internal.security.Init.init()
if (!KeyResolver._alreadyInitialized) {
KeyResolver._resolverVector = new ArrayList(10);
_alreadyInitialized = true;
}
|
public static com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolver | item(int i)Method item
KeyResolver resolver = (KeyResolver) KeyResolver._resolverVector.get(i);
if (resolver==null) {
throw new KeyResolverException("utils.resolver.noClass");
}
return resolver;
|
public static int | length()Method length
return KeyResolver._resolverVector.size();
|
public static void | register(java.lang.String className)This method is used for registering {@link KeyResolverSpi}s which are
available to all {@link com.sun.org.apache.xml.internal.security.keys.KeyInfo} objects. This means that
personalized {@link KeyResolverSpi}s should only be registered directly
to the {@link com.sun.org.apache.xml.internal.security.keys.KeyInfo} using
{@link com.sun.org.apache.xml.internal.security.keys.KeyInfo#registerInternalKeyResolver}.
KeyResolver._resolverVector.add(new KeyResolver(className));
|
public static void | registerAtStart(java.lang.String className)This method is used for registering {@link KeyResolverSpi}s which are
available to all {@link com.sun.org.apache.xml.internal.security.keys.KeyInfo} objects. This means that
personalized {@link KeyResolverSpi}s should only be registered directly
to the {@link com.sun.org.apache.xml.internal.security.keys.KeyInfo} using {@link com.sun.org.apache.xml.internal.security.keys.KeyInfo#registerInternalKeyResolver}.
KeyResolver._resolverVector.add(0, className);
|
public java.security.PublicKey | resolvePublicKey(org.w3c.dom.Element element, java.lang.String BaseURI, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver storage)Method resolve
return this._resolverSpi.engineResolvePublicKey(element, BaseURI, storage);
|
public javax.crypto.SecretKey | resolveSecretKey(org.w3c.dom.Element element, java.lang.String BaseURI, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver storage)
return this._resolverSpi.engineResolveSecretKey(element, BaseURI,
storage);
|
public static java.security.PublicKey | resolveStatic(org.w3c.dom.Element element, java.lang.String BaseURI, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver storage)Method resolveStatic
KeyResolver myResolver = KeyResolver.getInstance(element, BaseURI,
storage);
return myResolver.resolvePublicKey(element, BaseURI, storage);
|
public java.security.cert.X509Certificate | resolveX509Certificate(org.w3c.dom.Element element, java.lang.String BaseURI, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver storage)Method resolveX509Certificate
return this._resolverSpi.engineResolveX509Certificate(element, BaseURI,
storage);
|
public java.lang.String | resolverClassName()Method resolverClassName
return this._resolverSpi.getClass().getName();
|
public void | setProperty(java.lang.String key, java.lang.String value)Method setProperty
this._resolverSpi.engineSetProperty(key, value);
|
public boolean | understandsProperty(java.lang.String propertyToTest)Method understandsProperty
return this._resolverSpi.understandsProperty(propertyToTest);
|