Methods Summary |
---|
public static javax.xml.crypto.dsig.keyinfo.KeyInfoFactory | getInstance(java.lang.String mechanismType)Returns a KeyInfoFactory that supports the
specified XML processing mechanism and representation type (ex: "DOM").
This method uses the standard JCA provider lookup mechanism to
locate and instantiate a KeyInfoFactory implementation of
the desired mechanism type. It traverses the list of registered security
Provider s, starting with the most preferred
Provider . A new KeyInfoFactory object
from the first Provider that supports the specified
mechanism is returned.
Note that the list of registered providers may be retrieved via
the {@link Security#getProviders() Security.getProviders()} method.
if (mechanismType == null) {
throw new NullPointerException("mechanismType cannot be null");
}
Instance instance;
try {
instance = GetInstance.getInstance
("KeyInfoFactory", null, mechanismType);
} catch (NoSuchAlgorithmException nsae) {
throw new NoSuchMechanismException(nsae);
}
KeyInfoFactory factory = (KeyInfoFactory) instance.impl;
factory.mechanismType = mechanismType;
factory.provider = instance.provider;
return factory;
|
public static javax.xml.crypto.dsig.keyinfo.KeyInfoFactory | getInstance(java.lang.String mechanismType, java.security.Provider provider)Returns a KeyInfoFactory that supports the
requested XML processing mechanism and representation type (ex: "DOM"),
as supplied by the specified provider. Note that the specified
Provider object does not have to be registered in the
provider list.
if (mechanismType == null) {
throw new NullPointerException("mechanismType cannot be null");
} else if (provider == null) {
throw new NullPointerException("provider cannot be null");
}
Instance instance;
try {
instance = GetInstance.getInstance
("KeyInfoFactory", null, mechanismType, provider);
} catch (NoSuchAlgorithmException nsae) {
throw new NoSuchMechanismException(nsae);
}
KeyInfoFactory factory = (KeyInfoFactory) instance.impl;
factory.mechanismType = mechanismType;
factory.provider = instance.provider;
return factory;
|
public static javax.xml.crypto.dsig.keyinfo.KeyInfoFactory | getInstance(java.lang.String mechanismType, java.lang.String provider)Returns a KeyInfoFactory that supports the
requested XML processing mechanism and representation type (ex: "DOM"),
as supplied by the specified provider. The specified provider must be
registered in the security provider list.
Note that the list of registered providers may be retrieved via
the {@link Security#getProviders() Security.getProviders()} method.
if (mechanismType == null) {
throw new NullPointerException("mechanismType cannot be null");
} else if (provider == null) {
throw new NullPointerException("provider cannot be null");
} else if (provider.length() == 0) {
throw new NoSuchProviderException();
}
Instance instance;
try {
instance = GetInstance.getInstance
("KeyInfoFactory", null, mechanismType, provider);
} catch (NoSuchAlgorithmException nsae) {
throw new NoSuchMechanismException(nsae);
}
KeyInfoFactory factory = (KeyInfoFactory) instance.impl;
factory.mechanismType = mechanismType;
factory.provider = instance.provider;
return factory;
|
public static javax.xml.crypto.dsig.keyinfo.KeyInfoFactory | getInstance()Returns a KeyInfoFactory that supports the
default XML processing mechanism and representation type ("DOM").
This method uses the standard JCA provider lookup mechanism to
locate and instantiate a KeyInfoFactory implementation of
the default mechanism type. It traverses the list of registered security
Provider s, starting with the most preferred
Provider . A new KeyInfoFactory object
from the first Provider that supports the DOM mechanism is
returned.
Note that the list of registered providers may be retrieved via
the {@link Security#getProviders() Security.getProviders()} method.
return getInstance("DOM");
|
public final java.lang.String | getMechanismType()Returns the type of the XML processing mechanism and representation
supported by this KeyInfoFactory (ex: "DOM")
return mechanismType;
|
public final java.security.Provider | getProvider()Returns the provider of this KeyInfoFactory .
return provider;
|
public abstract javax.xml.crypto.URIDereferencer | getURIDereferencer()Returns a reference to the URIDereferencer that is used by
default to dereference URIs in {@link RetrievalMethod} objects.
|
public abstract boolean | isFeatureSupported(java.lang.String feature)Indicates whether a specified feature is supported.
|
public abstract javax.xml.crypto.dsig.keyinfo.KeyInfo | newKeyInfo(java.util.List content)Creates a KeyInfo containing the specified list of
key information types.
|
public abstract javax.xml.crypto.dsig.keyinfo.KeyInfo | newKeyInfo(java.util.List content, java.lang.String id)Creates a KeyInfo containing the specified list of key
information types and optional id. The
id parameter represents the value of an XML
ID attribute and is useful for referencing
the KeyInfo from other XML structures.
|
public abstract javax.xml.crypto.dsig.keyinfo.KeyName | newKeyName(java.lang.String name)Creates a KeyName from the specified name.
|
public abstract javax.xml.crypto.dsig.keyinfo.KeyValue | newKeyValue(java.security.PublicKey key)Creates a KeyValue from the specified public key.
|
public abstract javax.xml.crypto.dsig.keyinfo.PGPData | newPGPData(byte[] keyId)Creates a PGPData from the specified PGP public key
identifier.
|
public abstract javax.xml.crypto.dsig.keyinfo.PGPData | newPGPData(byte[] keyId, byte[] keyPacket, java.util.List other)Creates a PGPData from the specified PGP public key
identifier, and optional key material packet and list of external
elements.
|
public abstract javax.xml.crypto.dsig.keyinfo.PGPData | newPGPData(byte[] keyPacket, java.util.List other)Creates a PGPData from the specified PGP key material
packet and optional list of external elements.
|
public abstract javax.xml.crypto.dsig.keyinfo.RetrievalMethod | newRetrievalMethod(java.lang.String uri)Creates a RetrievalMethod from the specified URI.
|
public abstract javax.xml.crypto.dsig.keyinfo.RetrievalMethod | newRetrievalMethod(java.lang.String uri, java.lang.String type, java.util.List transforms)Creates a RetrievalMethod from the specified parameters.
|
public abstract javax.xml.crypto.dsig.keyinfo.X509Data | newX509Data(java.util.List content)Creates a X509Data containing the specified list of
X.509 content.
|
public abstract javax.xml.crypto.dsig.keyinfo.X509IssuerSerial | newX509IssuerSerial(java.lang.String issuerName, java.math.BigInteger serialNumber)Creates an X509IssuerSerial from the specified X.500 issuer
distinguished name and serial number.
|
public abstract javax.xml.crypto.dsig.keyinfo.KeyInfo | unmarshalKeyInfo(javax.xml.crypto.XMLStructure xmlStructure)Unmarshals a new KeyInfo instance from a
mechanism-specific XMLStructure (ex: {@link DOMStructure})
instance.
|