org.jcp.xml.dsig.internal.dom
Class DOMKeyInfoFactory

java.lang.Object
  extended by javax.xml.crypto.dsig.keyinfo.KeyInfoFactory
      extended by org.jcp.xml.dsig.internal.dom.DOMKeyInfoFactory

public final class DOMKeyInfoFactory
extends KeyInfoFactory

Disabled: no SafeJ information.

DOM-based implementation of KeyInfoFactory.


Constructor Summary
DOMKeyInfoFactory()
           
 
Method Summary
 URIDereferencer getURIDereferencer()
          Returns a reference to the URIDereferencer that is used by default to dereference URIs in RetrievalMethod objects.
 boolean isFeatureSupported(String feature)
          Indicates whether a specified feature is supported.
 KeyInfo newKeyInfo(List content)
          Creates a KeyInfo containing the specified list of key information types.
 KeyInfo newKeyInfo(List content, String id)
          Creates a KeyInfo containing the specified list of key information types and optional id.
 KeyName newKeyName(String name)
          Creates a KeyName from the specified name.
 KeyValue newKeyValue(PublicKey key)
          Creates a KeyValue from the specified public key.
 PGPData newPGPData(byte[] keyId)
          Creates a PGPData from the specified PGP public key identifier.
 PGPData newPGPData(byte[] keyId, byte[] keyPacket, List other)
          Creates a PGPData from the specified PGP public key identifier, and optional key material packet and list of external elements.
 PGPData newPGPData(byte[] keyPacket, List other)
          Creates a PGPData from the specified PGP key material packet and optional list of external elements.
 RetrievalMethod newRetrievalMethod(String uri)
          Creates a RetrievalMethod from the specified URI.
 RetrievalMethod newRetrievalMethod(String uri, String type, List transforms)
          Creates a RetrievalMethod from the specified parameters.
 X509Data newX509Data(List content)
          Creates a X509Data containing the specified list of X.509 content.
 X509IssuerSerial newX509IssuerSerial(String issuerName, BigInteger serialNumber)
          Creates an X509IssuerSerial from the specified X.500 issuer distinguished name and serial number.
 KeyInfo unmarshalKeyInfo(XMLStructure xmlStructure)
          Unmarshals a new KeyInfo instance from a mechanism-specific XMLStructure (ex: DOMStructure) instance.
 
Methods inherited from class javax.xml.crypto.dsig.keyinfo.KeyInfoFactory
getInstance, getInstance, getInstance, getInstance, getMechanismType, getProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMKeyInfoFactory

public DOMKeyInfoFactory()
Class is disabled.

Method Detail

newKeyInfo

public KeyInfo newKeyInfo(List content)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a KeyInfo containing the specified list of key information types.

Specified by:
newKeyInfo in class KeyInfoFactory
Parameters:
content - a list of one or more XMLStructures representing key information types. The list is defensively copied to protect against subsequent modification.
Returns:
a KeyInfo

newKeyInfo

public KeyInfo newKeyInfo(List content,
                          String id)
Class is disabled.

Description copied from class: KeyInfoFactory
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.

Specified by:
newKeyInfo in class KeyInfoFactory
Parameters:
content - a list of one or more XMLStructures representing key information types. The list is defensively copied to protect against subsequent modification.
id - the value of an XML ID (may be null)
Returns:
a KeyInfo

newKeyName

public KeyName newKeyName(String name)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a KeyName from the specified name.

Specified by:
newKeyName in class KeyInfoFactory
Parameters:
name - the name that identifies the key
Returns:
a KeyName

newKeyValue

public KeyValue newKeyValue(PublicKey key)
                     throws KeyException
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a KeyValue from the specified public key.

Specified by:
newKeyValue in class KeyInfoFactory
Parameters:
key - the public key
Returns:
a KeyValue
Throws:
KeyException - if the key's algorithm is not recognized or supported by this KeyInfoFactory

newPGPData

public PGPData newPGPData(byte[] keyId)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a PGPData from the specified PGP public key identifier.

Specified by:
newPGPData in class KeyInfoFactory
Parameters:
keyId - a PGP public key identifier as defined in RFC 2440, section 11.2. The array is cloned to protect against subsequent modification.
Returns:
a PGPData

newPGPData

public PGPData newPGPData(byte[] keyId,
                          byte[] keyPacket,
                          List other)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a PGPData from the specified PGP public key identifier, and optional key material packet and list of external elements.

Specified by:
newPGPData in class KeyInfoFactory
Parameters:
keyId - a PGP public key identifier as defined in RFC 2440, section 11.2. The array is cloned to protect against subsequent modification.
keyPacket - a PGP key material packet as defined in RFC 2440, section 5.5. The array is cloned to protect against subsequent modification. May be null.
other - a list of XMLStructures representing elements from an external namespace. The list is defensively copied to protect against subsequent modification. May be null or empty.
Returns:
a PGPData

newPGPData

public PGPData newPGPData(byte[] keyPacket,
                          List other)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a PGPData from the specified PGP key material packet and optional list of external elements.

Specified by:
newPGPData in class KeyInfoFactory
Parameters:
keyPacket - a PGP key material packet as defined in RFC 2440, section 5.5. The array is cloned to protect against subsequent modification.
other - a list of XMLStructures representing elements from an external namespace. The list is defensively copied to protect against subsequent modification. May be null or empty.
Returns:
a PGPData

newRetrievalMethod

public RetrievalMethod newRetrievalMethod(String uri)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a RetrievalMethod from the specified URI.

Specified by:
newRetrievalMethod in class KeyInfoFactory
Parameters:
uri - the URI that identifies the KeyInfo information to be retrieved
Returns:
a RetrievalMethod

newRetrievalMethod

public RetrievalMethod newRetrievalMethod(String uri,
                                          String type,
                                          List transforms)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a RetrievalMethod from the specified parameters.

Specified by:
newRetrievalMethod in class KeyInfoFactory
Parameters:
uri - the URI that identifies the KeyInfo information to be retrieved
type - a URI that identifies the type of KeyInfo information to be retrieved (may be null)
transforms - a list of Transforms. The list is defensively copied to protect against subsequent modification. May be null or empty.
Returns:
a RetrievalMethod

newX509Data

public X509Data newX509Data(List content)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates a X509Data containing the specified list of X.509 content.

Specified by:
newX509Data in class KeyInfoFactory
Parameters:
content - a list of one or more X.509 content types. Valid types are String (subject names), byte[] (subject key ids), X509Certificate, X509CRL, or XMLStructure (X509IssuerSerial objects or elements from an external namespace). Subject names are distinguished names in RFC 2253 String format. Implementations MUST support the attribute type keywords defined in RFC 2253 (CN, L, ST, O, OU, C, STREET, DC and UID). Implementations MAY support additional keywords. The list is defensively copied to protect against subsequent modification.
Returns:
a X509Data

newX509IssuerSerial

public X509IssuerSerial newX509IssuerSerial(String issuerName,
                                            BigInteger serialNumber)
Class is disabled.

Description copied from class: KeyInfoFactory
Creates an X509IssuerSerial from the specified X.500 issuer distinguished name and serial number.

Specified by:
newX509IssuerSerial in class KeyInfoFactory
Parameters:
issuerName - the issuer's distinguished name in RFC 2253 String format. Implementations MUST support the attribute type keywords defined in RFC 2253 (CN, L, ST, O, OU, C, STREET, DC and UID). Implementations MAY support additional keywords.
serialNumber - the serial number
Returns:
an X509IssuerSerial

isFeatureSupported

public boolean isFeatureSupported(String feature)
Class is disabled.

Description copied from class: KeyInfoFactory
Indicates whether a specified feature is supported.

Specified by:
isFeatureSupported in class KeyInfoFactory
Parameters:
feature - the feature name (as an absolute URI)
Returns:
true if the specified feature is supported, false otherwise

getURIDereferencer

public URIDereferencer getURIDereferencer()
Class is disabled.

Description copied from class: KeyInfoFactory
Returns a reference to the URIDereferencer that is used by default to dereference URIs in RetrievalMethod objects.

Specified by:
getURIDereferencer in class KeyInfoFactory
Returns:
a reference to the default URIDereferencer

unmarshalKeyInfo

public KeyInfo unmarshalKeyInfo(XMLStructure xmlStructure)
                         throws MarshalException
Class is disabled.

Description copied from class: KeyInfoFactory
Unmarshals a new KeyInfo instance from a mechanism-specific XMLStructure (ex: DOMStructure) instance.

Specified by:
unmarshalKeyInfo in class KeyInfoFactory
Parameters:
xmlStructure - a mechanism-specific XML structure from which to unmarshal the keyinfo from
Returns:
the KeyInfo
Throws:
MarshalException - if an unrecoverable exception occurs during unmarshalling