APIdia Launch Partner
Top Description Inners Constructors Methods
org.jcp.xml.dsig.internal.dom

public final Class DOMKeyInfoFactory

extends KeyInfoFactory
Class Inheritance
Imports
java.math.BigInteger, java.security.KeyException, .PublicKey, java.security.interfaces.DSAPublicKey, .ECPublicKey, .RSAPublicKey, java.util.List, javax.xml.crypto.MarshalException, .URIDereferencer, .XMLStructure, javax.xml.crypto.dom.DOMCryptoContext, javax.xml.crypto.dsig.XMLSignature, javax.xml.crypto.dsig.keyinfo.KeyInfo, .KeyInfoFactory, .KeyName, .KeyValue, .PGPData, .RetrievalMethod, .X509Data, .X509IssuerSerial, org.w3c.dom.Document, .Element, .Node

DOM-based implementation of KeyInfoFactory.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public URIDereferencer
getURIDereferencer()

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.getURIDereferencer.

Returns a reference to the URIDereferencer that is used by default to dereference URIs in RetrievalMethod objects.

public boolean
isFeatureSupported(String feature)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.isFeatureSupported.

Indicates whether a specified feature is supported.

public KeyInfo
newKeyInfo(List<E> content)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyInfo.

Creates a KeyInfo containing the specified list of key information types.

public KeyInfo
newKeyInfo(List<E> content, String id)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyInfo.

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 KeyName
newKeyName(String name)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyName.

Creates a KeyName from the specified name.

public KeyValue
newKeyValue(PublicKey key)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyValue.

Creates a KeyValue from the specified public key.

public PGPData
newPGPData(byte[] keyId)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Creates a PGPData from the specified PGP public key identifier.

public PGPData
newPGPData(byte[] keyId, byte[] keyPacket, List<E> other)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

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

public PGPData
newPGPData(byte[] keyPacket, List<E> other)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Creates a PGPData from the specified PGP key material packet and optional list of external elements.

public RetrievalMethod
newRetrievalMethod(String uri)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newRetrievalMethod.

Creates a RetrievalMethod from the specified URI.

public RetrievalMethod
newRetrievalMethod(String uri, String type, List<E> transforms)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newRetrievalMethod.

Creates a RetrievalMethod from the specified parameters.

public X509Data
newX509Data(List<E> content)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newX509Data.

Creates a X509Data containing the specified list of X.509 content.

public X509IssuerSerial
newX509IssuerSerial(String issuerName, BigInteger serialNumber)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newX509IssuerSerial.

Creates an X509IssuerSerial from the specified X.500 issuer distinguished name and serial number.

public KeyInfo
unmarshalKeyInfo(XMLStructure xmlStructure)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.unmarshalKeyInfo.

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

Inherited from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory:
getInstancegetInstancegetInstancegetInstancegetMechanismTypegetProvider

Constructor Detail

DOMKeyInfoFactoryback to summary
public DOMKeyInfoFactory()

Method Detail

getURIDereferencerback to summary
public URIDereferencer getURIDereferencer()

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.getURIDereferencer.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.getURIDereferencer.

Returns a reference to the URIDereferencer that is used by default to dereference URIs in RetrievalMethod objects.

Annotations
@Override
isFeatureSupportedback to summary
public boolean isFeatureSupported(String feature)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.isFeatureSupported.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.isFeatureSupported.

Indicates whether a specified feature is supported.

Annotations
@Override
newKeyInfoback to summary
public KeyInfo newKeyInfo(List<E> content)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyInfo.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyInfo.

Creates a KeyInfo containing the specified list of key information types.

Annotations
@Override
@SuppressWarnings:rawtypes
newKeyInfoback to summary
public KeyInfo newKeyInfo(List<E> content, String id)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyInfo.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyInfo.

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.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newKeyNameback to summary
public KeyName newKeyName(String name)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyName.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyName.

Creates a KeyName from the specified name.

Annotations
@Override
newKeyValueback to summary
public KeyValue newKeyValue(PublicKey key) throws KeyException

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyValue.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newKeyValue.

Creates a KeyValue from the specified public key.

Annotations
@Override
Exceptions
KeyException:
if the key's algorithm is not recognized or supported by this KeyInfoFactory
newPGPDataback to summary
public PGPData newPGPData(byte[] keyId)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Creates a PGPData from the specified PGP public key identifier.

Annotations
@Override
newPGPDataback to summary
public PGPData newPGPData(byte[] keyId, byte[] keyPacket, List<E> other)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

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

Annotations
@Override
@SuppressWarnings:rawtypes, unchecked
newPGPDataback to summary
public PGPData newPGPData(byte[] keyPacket, List<E> other)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newPGPData.

Creates a PGPData from the specified PGP key material packet and optional list of external elements.

Annotations
@Override
@SuppressWarnings:rawtypes, unchecked
newRetrievalMethodback to summary
public RetrievalMethod newRetrievalMethod(String uri)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newRetrievalMethod.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newRetrievalMethod.

Creates a RetrievalMethod from the specified URI.

Annotations
@Override
newRetrievalMethodback to summary
public RetrievalMethod newRetrievalMethod(String uri, String type, List<E> transforms)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newRetrievalMethod.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newRetrievalMethod.

Creates a RetrievalMethod from the specified parameters.

Annotations
@Override
@SuppressWarnings:rawtypes, unchecked
newX509Databack to summary
public X509Data newX509Data(List<E> content)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newX509Data.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newX509Data.

Creates a X509Data containing the specified list of X.509 content.

Annotations
@Override
@SuppressWarnings:rawtypes
newX509IssuerSerialback to summary
public X509IssuerSerial newX509IssuerSerial(String issuerName, BigInteger serialNumber)

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newX509IssuerSerial.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.newX509IssuerSerial.

Creates an X509IssuerSerial from the specified X.500 issuer distinguished name and serial number.

Annotations
@Override
unmarshalKeyInfoback to summary
public KeyInfo unmarshalKeyInfo(XMLStructure xmlStructure) throws MarshalException

Implements abstract javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.unmarshalKeyInfo.

Doc from javax.xml.crypto.dsig.keyinfo.KeyInfoFactory.unmarshalKeyInfo.

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

Annotations
@Override
Exceptions
MarshalException:
if an unrecoverable exception occurs during unmarshalling
org.jcp.xml.dsig.internal.dom back to summary

private Class DOMKeyInfoFactory.UnmarshalContext

extends DOMCryptoContext
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from javax.xml.crypto.dom.DOMCryptoContext:
getgetBaseURIgetDefaultNamespacePrefixgetElementByIdgetKeySelectorgetNamespacePrefixgetPropertygetURIDereferenceriteratorputputNamespacePrefixsetBaseURIsetDefaultNamespacePrefixsetIdAttributeNSsetKeySelectorsetPropertysetURIDereferencer

Constructor Detail

UnmarshalContextback to summary
pack-priv UnmarshalContext()