org.apache.jcp.xml.dsig.internal.dom
Class DOMXMLSignatureFactory

java.lang.Object
  extended by javax.xml.crypto.dsig.XMLSignatureFactory
      extended by org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory

public final class DOMXMLSignatureFactory
extends XMLSignatureFactory

DOM-based implementation of XMLSignatureFactory.

Author:
Sean Mullan

Constructor Summary
DOMXMLSignatureFactory()
          Initializes a new instance of this class.
 
Method Summary
 URIDereferencer getURIDereferencer()
           
 boolean isFeatureSupported(String feature)
           
 CanonicalizationMethod newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)
           
 CanonicalizationMethod newCanonicalizationMethod(String algorithm, XMLStructure params)
           
 DigestMethod newDigestMethod(String algorithm, DigestMethodParameterSpec params)
           
 Manifest newManifest(List references)
           
 Manifest newManifest(List references, String id)
           
 Reference newReference(String uri, DigestMethod dm)
           
 Reference newReference(String uri, DigestMethod dm, List appliedTransforms, Data result, List transforms, String type, String id)
           
 Reference newReference(String uri, DigestMethod dm, List transforms, String type, String id)
           
 Reference newReference(String uri, DigestMethod dm, List transforms, String type, String id, byte[] digestValue)
           
 SignatureMethod newSignatureMethod(String algorithm, SignatureMethodParameterSpec params)
           
 SignatureProperties newSignatureProperties(List props, String id)
           
 SignatureProperty newSignatureProperty(List info, String target, String id)
           
 SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List references)
           
 SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List references, String id)
           
 Transform newTransform(String algorithm, TransformParameterSpec params)
           
 Transform newTransform(String algorithm, XMLStructure params)
           
 XMLObject newXMLObject(List content, String id, String mimeType, String encoding)
           
 XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki)
           
 XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki, List objects, String id, String signatureValueId)
           
 XMLSignature unmarshalXMLSignature(XMLStructure xmlStructure)
           
 XMLSignature unmarshalXMLSignature(XMLValidateContext context)
           
 
Methods inherited from class javax.xml.crypto.dsig.XMLSignatureFactory
getInstance, getInstance, getInstance, getInstance, getKeyInfoFactory, getMechanismType, getProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMXMLSignatureFactory

public DOMXMLSignatureFactory()
Initializes a new instance of this class.

Method Detail

newXMLSignature

public XMLSignature newXMLSignature(SignedInfo si,
                                    KeyInfo ki)
Specified by:
newXMLSignature in class XMLSignatureFactory

newXMLSignature

public XMLSignature newXMLSignature(SignedInfo si,
                                    KeyInfo ki,
                                    List objects,
                                    String id,
                                    String signatureValueId)
Specified by:
newXMLSignature in class XMLSignatureFactory

newReference

public Reference newReference(String uri,
                              DigestMethod dm)
Specified by:
newReference in class XMLSignatureFactory

newReference

public Reference newReference(String uri,
                              DigestMethod dm,
                              List transforms,
                              String type,
                              String id)
Specified by:
newReference in class XMLSignatureFactory

newReference

public Reference newReference(String uri,
                              DigestMethod dm,
                              List appliedTransforms,
                              Data result,
                              List transforms,
                              String type,
                              String id)
Specified by:
newReference in class XMLSignatureFactory

newReference

public Reference newReference(String uri,
                              DigestMethod dm,
                              List transforms,
                              String type,
                              String id,
                              byte[] digestValue)
Specified by:
newReference in class XMLSignatureFactory

newSignedInfo

public SignedInfo newSignedInfo(CanonicalizationMethod cm,
                                SignatureMethod sm,
                                List references)
Specified by:
newSignedInfo in class XMLSignatureFactory

newSignedInfo

public SignedInfo newSignedInfo(CanonicalizationMethod cm,
                                SignatureMethod sm,
                                List references,
                                String id)
Specified by:
newSignedInfo in class XMLSignatureFactory

newXMLObject

public XMLObject newXMLObject(List content,
                              String id,
                              String mimeType,
                              String encoding)
Specified by:
newXMLObject in class XMLSignatureFactory

newManifest

public Manifest newManifest(List references)
Specified by:
newManifest in class XMLSignatureFactory

newManifest

public Manifest newManifest(List references,
                            String id)
Specified by:
newManifest in class XMLSignatureFactory

newSignatureProperties

public SignatureProperties newSignatureProperties(List props,
                                                  String id)
Specified by:
newSignatureProperties in class XMLSignatureFactory

newSignatureProperty

public SignatureProperty newSignatureProperty(List info,
                                              String target,
                                              String id)
Specified by:
newSignatureProperty in class XMLSignatureFactory

unmarshalXMLSignature

public XMLSignature unmarshalXMLSignature(XMLValidateContext context)
                                   throws MarshalException
Specified by:
unmarshalXMLSignature in class XMLSignatureFactory
Throws:
MarshalException

unmarshalXMLSignature

public XMLSignature unmarshalXMLSignature(XMLStructure xmlStructure)
                                   throws MarshalException
Specified by:
unmarshalXMLSignature in class XMLSignatureFactory
Throws:
MarshalException

isFeatureSupported

public boolean isFeatureSupported(String feature)
Specified by:
isFeatureSupported in class XMLSignatureFactory

newDigestMethod

public DigestMethod newDigestMethod(String algorithm,
                                    DigestMethodParameterSpec params)
                             throws NoSuchAlgorithmException,
                                    InvalidAlgorithmParameterException
Specified by:
newDigestMethod in class XMLSignatureFactory
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newSignatureMethod

public SignatureMethod newSignatureMethod(String algorithm,
                                          SignatureMethodParameterSpec params)
                                   throws NoSuchAlgorithmException,
                                          InvalidAlgorithmParameterException
Specified by:
newSignatureMethod in class XMLSignatureFactory
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newTransform

public Transform newTransform(String algorithm,
                              TransformParameterSpec params)
                       throws NoSuchAlgorithmException,
                              InvalidAlgorithmParameterException
Specified by:
newTransform in class XMLSignatureFactory
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newTransform

public Transform newTransform(String algorithm,
                              XMLStructure params)
                       throws NoSuchAlgorithmException,
                              InvalidAlgorithmParameterException
Specified by:
newTransform in class XMLSignatureFactory
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newCanonicalizationMethod

public CanonicalizationMethod newCanonicalizationMethod(String algorithm,
                                                        C14NMethodParameterSpec params)
                                                 throws NoSuchAlgorithmException,
                                                        InvalidAlgorithmParameterException
Specified by:
newCanonicalizationMethod in class XMLSignatureFactory
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

newCanonicalizationMethod

public CanonicalizationMethod newCanonicalizationMethod(String algorithm,
                                                        XMLStructure params)
                                                 throws NoSuchAlgorithmException,
                                                        InvalidAlgorithmParameterException
Specified by:
newCanonicalizationMethod in class XMLSignatureFactory
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException

getURIDereferencer

public URIDereferencer getURIDereferencer()
Specified by:
getURIDereferencer in class XMLSignatureFactory


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.