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

public final Class DOMXMLSignatureFactory

extends XMLSignatureFactory
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, .NoSuchAlgorithmException, java.util.List, javax.xml.crypto.Data, .MarshalException, .URIDereferencer, .XMLCryptoContext, .XMLStructure, javax.xml.crypto.dom.DOMCryptoContext, javax.xml.crypto.dsig.CanonicalizationMethod, .DigestMethod, .Manifest, .Reference, .SignatureMethod, .SignatureProperties, .SignatureProperty, .SignedInfo, .Transform, .TransformService, .XMLObject, .XMLSignature, .XMLSignatureFactory, .XMLValidateContext, javax.xml.crypto.dsig.dom.DOMValidateContext, javax.xml.crypto.dsig.keyinfo.KeyInfo, javax.xml.crypto.dsig.spec.C14NMethodParameterSpec, .DigestMethodParameterSpec, .SignatureMethodParameterSpec, .TransformParameterSpec, org.w3c.dom.Document, .Element, .Node

DOM-based implementation of XMLSignatureFactory.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public
DOMXMLSignatureFactory()

Initializes a new instance of this class.

Method Summary

Modifier and TypeMethod and Description
public URIDereferencer
getURIDereferencer()

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.getURIDereferencer.

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

public boolean
isFeatureSupported(String feature)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.isFeatureSupported.

Indicates whether a specified feature is supported.

public CanonicalizationMethod
newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newCanonicalizationMethod.

Creates a CanonicalizationMethod for the specified algorithm URI and parameters.

public CanonicalizationMethod
newCanonicalizationMethod(String algorithm, XMLStructure params)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newCanonicalizationMethod.

Creates a CanonicalizationMethod for the specified algorithm URI and parameters.

public DigestMethod
newDigestMethod(String algorithm, DigestMethodParameterSpec params)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newDigestMethod.

Creates a DigestMethod for the specified algorithm URI and parameters.

public Manifest
newManifest(List<E> references)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newManifest.

Creates a Manifest containing the specified list of References.

public Manifest
newManifest(List<E> references, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newManifest.

Creates a Manifest containing the specified list of References and optional id.

public Reference
newReference(String uri, DigestMethod dm)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified URI and digest method.

public Reference
newReference(String uri, DigestMethod dm, List<E> transforms, String type, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified parameters.

public Reference
newReference(String uri, DigestMethod dm, List<E> appliedTransforms, Data result, List<E> transforms, String type, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified parameters.

public Reference
newReference(String uri, DigestMethod dm, List<E> transforms, String type, String id, byte[] digestValue)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified parameters and pre-calculated digest value.

public SignatureMethod
newSignatureMethod(String algorithm, SignatureMethodParameterSpec params)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureMethod.

Creates a SignatureMethod for the specified algorithm URI and parameters.

public SignatureProperties
newSignatureProperties(List<E> props, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureProperties.

Creates a SignatureProperties containing the specified list of SignaturePropertys and optional id.

public SignatureProperty
newSignatureProperty(List<E> info, String target, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureProperty.

Creates a SignatureProperty containing the specified list of XMLStructures, target URI and optional id.

public SignedInfo
newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List<E> references)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignedInfo.

Creates a SignedInfo with the specified canonicalization and signature methods, and list of one or more references.

public SignedInfo
newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List<E> references, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignedInfo.

Creates a SignedInfo with the specified parameters.

public Transform
newTransform(String algorithm, TransformParameterSpec params)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newTransform.

Creates a Transform for the specified algorithm URI and parameters.

public Transform
newTransform(String algorithm, XMLStructure params)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newTransform.

Creates a Transform for the specified algorithm URI and parameters.

public XMLObject
newXMLObject(List<E> content, String id, String mimeType, String encoding)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newXMLObject.

Creates an XMLObject from the specified parameters.

public XMLSignature
newXMLSignature(SignedInfo si, KeyInfo ki)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newXMLSignature.

Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.

public XMLSignature
newXMLSignature(SignedInfo si, KeyInfo ki, List<E> objects, String id, String signatureValueId)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newXMLSignature.

Creates an XMLSignature and initializes it with the specified parameters.

private XMLSignature
public XMLSignature
unmarshalXMLSignature(XMLValidateContext context)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.unmarshalXMLSignature.

Unmarshals a new XMLSignature instance from a mechanism-specific XMLValidateContext instance.

public XMLSignature
unmarshalXMLSignature(XMLStructure xmlStructure)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.unmarshalXMLSignature.

Unmarshals a new XMLSignature instance from a mechanism-specific XMLStructure instance.

Inherited from javax.xml.crypto.dsig.XMLSignatureFactory:
getInstancegetInstancegetInstancegetInstancegetKeyInfoFactorygetMechanismTypegetProvider

Constructor Detail

DOMXMLSignatureFactoryback to summary
public DOMXMLSignatureFactory()

Initializes a new instance of this class.

Method Detail

getURIDereferencerback to summary
public URIDereferencer getURIDereferencer()

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.getURIDereferencer.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.getURIDereferencer.

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

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

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.isFeatureSupported.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.isFeatureSupported.

Indicates whether a specified feature is supported.

Annotations
@Override
newCanonicalizationMethodback to summary
public CanonicalizationMethod newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newCanonicalizationMethod.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newCanonicalizationMethod.

Creates a CanonicalizationMethod for the specified algorithm URI and parameters.

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if an implementation of the specified algorithm cannot be found
InvalidAlgorithmParameterException:
if the specified parameters are inappropriate for the requested algorithm
newCanonicalizationMethodback to summary
public CanonicalizationMethod newCanonicalizationMethod(String algorithm, XMLStructure params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newCanonicalizationMethod.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newCanonicalizationMethod.

Creates a CanonicalizationMethod for the specified algorithm URI and parameters. The parameters are specified as a mechanism-specific XMLStructure (ex: DOMStructure). This method is useful when the parameters are in XML form or there is no standard class for specifying the parameters.

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if an implementation of the specified algorithm cannot be found
InvalidAlgorithmParameterException:
if the specified parameters are inappropriate for the requested algorithm
newDigestMethodback to summary
public DigestMethod newDigestMethod(String algorithm, DigestMethodParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newDigestMethod.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newDigestMethod.

Creates a DigestMethod for the specified algorithm URI and parameters.

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if an implementation of the specified algorithm cannot be found
InvalidAlgorithmParameterException:
if the specified parameters are inappropriate for the requested algorithm
newManifestback to summary
public Manifest newManifest(List<E> references)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newManifest.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newManifest.

Creates a Manifest containing the specified list of References.

Annotations
@Override
@SuppressWarnings:rawtypes
newManifestback to summary
public Manifest newManifest(List<E> references, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newManifest.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newManifest.

Creates a Manifest containing the specified list of References and optional id.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newReferenceback to summary
public Reference newReference(String uri, DigestMethod dm)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified URI and digest method.

Annotations
@Override
newReferenceback to summary
public Reference newReference(String uri, DigestMethod dm, List<E> transforms, String type, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified parameters.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newReferenceback to summary
public Reference newReference(String uri, DigestMethod dm, List<E> appliedTransforms, Data result, List<E> transforms, String type, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified parameters.

This method is useful when a list of transforms have already been applied to the Reference. See for example, the OASIS-DSS (Digital Signature Services) specification.

When an XMLSignature containing this reference is generated, the specified transforms (if non-null) are applied to the specified result. The Transforms element of the resulting Reference element is set to the concatenation of the appliedTransforms and transforms.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newReferenceback to summary
public Reference newReference(String uri, DigestMethod dm, List<E> transforms, String type, String id, byte[] digestValue)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newReference.

Creates a Reference with the specified parameters and pre-calculated digest value.

This method is useful when the digest value of a Reference has been previously computed. See for example, the OASIS-DSS (Digital Signature Services) specification.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newSignatureMethodback to summary
public SignatureMethod newSignatureMethod(String algorithm, SignatureMethodParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureMethod.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureMethod.

Creates a SignatureMethod for the specified algorithm URI and parameters.

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if an implementation of the specified algorithm cannot be found
InvalidAlgorithmParameterException:
if the specified parameters are inappropriate for the requested algorithm
newSignaturePropertiesback to summary
public SignatureProperties newSignatureProperties(List<E> props, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureProperties.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureProperties.

Creates a SignatureProperties containing the specified list of SignaturePropertys and optional id.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newSignaturePropertyback to summary
public SignatureProperty newSignatureProperty(List<E> info, String target, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureProperty.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newSignatureProperty.

Creates a SignatureProperty containing the specified list of XMLStructures, target URI and optional id.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newSignedInfoback to summary
public SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List<E> references)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignedInfo.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newSignedInfo.

Creates a SignedInfo with the specified canonicalization and signature methods, and list of one or more references.

Annotations
@Override
@SuppressWarnings:rawtypes
newSignedInfoback to summary
public SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List<E> references, String id)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newSignedInfo.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newSignedInfo.

Creates a SignedInfo with the specified parameters.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newTransformback to summary
public Transform newTransform(String algorithm, TransformParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newTransform.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newTransform.

Creates a Transform for the specified algorithm URI and parameters.

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if an implementation of the specified algorithm cannot be found
InvalidAlgorithmParameterException:
if the specified parameters are inappropriate for the requested algorithm
newTransformback to summary
public Transform newTransform(String algorithm, XMLStructure params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newTransform.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newTransform.

Creates a Transform for the specified algorithm URI and parameters. The parameters are specified as a mechanism-specific XMLStructure (ex: DOMStructure). This method is useful when the parameters are in XML form or there is no standard class for specifying the parameters.

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if an implementation of the specified algorithm cannot be found
InvalidAlgorithmParameterException:
if the specified parameters are inappropriate for the requested algorithm
newXMLObjectback to summary
public XMLObject newXMLObject(List<E> content, String id, String mimeType, String encoding)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newXMLObject.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newXMLObject.

Creates an XMLObject from the specified parameters.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
newXMLSignatureback to summary
public XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newXMLSignature.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newXMLSignature.

Creates an XMLSignature and initializes it with the contents of the specified SignedInfo and KeyInfo objects.

Annotations
@Override
newXMLSignatureback to summary
public XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki, List<E> objects, String id, String signatureValueId)

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.newXMLSignature.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.newXMLSignature.

Creates an XMLSignature and initializes it with the specified parameters.

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
unmarshalback to summary
private XMLSignature unmarshal(Node node, XMLCryptoContext context) throws MarshalException
unmarshalXMLSignatureback to summary
public XMLSignature unmarshalXMLSignature(XMLValidateContext context) throws MarshalException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.unmarshalXMLSignature.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.unmarshalXMLSignature.

Unmarshals a new XMLSignature instance from a mechanism-specific XMLValidateContext instance.

Annotations
@Override
Exceptions
MarshalException:
if an unrecoverable exception occurs during unmarshalling
unmarshalXMLSignatureback to summary
public XMLSignature unmarshalXMLSignature(XMLStructure xmlStructure) throws MarshalException

Implements abstract javax.xml.crypto.dsig.XMLSignatureFactory.unmarshalXMLSignature.

Doc from javax.xml.crypto.dsig.XMLSignatureFactory.unmarshalXMLSignature.

Unmarshals a new XMLSignature instance from a mechanism-specific XMLStructure instance. This method is useful if you only want to unmarshal (and not validate) an XMLSignature.

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

private Class DOMXMLSignatureFactory.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()