Class DOMXMLSignatureFactory
java.lang.Object
javax.xml.crypto.dsig.XMLSignatureFactory
org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory
DOM-based implementation of XMLSignatureFactory.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isFeatureSupported
(String feature) newCanonicalizationMethod
(String algorithm, C14NMethodParameterSpec params) newCanonicalizationMethod
(String algorithm, XMLStructure params) newDigestMethod
(String algorithm, DigestMethodParameterSpec params) newManifest
(List references) newManifest
(List references, String id) newReference
(String uri, DigestMethod dm) newReference
(String uri, DigestMethod dm, List transforms, String type, String id) newReference
(String uri, DigestMethod dm, List transforms, String type, String id, byte[] digestValue) newReference
(String uri, DigestMethod dm, List appliedTransforms, Data result, List transforms, String type, String id) newSignatureMethod
(String algorithm, SignatureMethodParameterSpec params) newSignatureProperties
(List props, String id) newSignatureProperty
(List info, String target, String id) newSignedInfo
(CanonicalizationMethod cm, SignatureMethod sm, List references) newSignedInfo
(CanonicalizationMethod cm, SignatureMethod sm, List references, String id) newTransform
(String algorithm, TransformParameterSpec params) newTransform
(String algorithm, XMLStructure params) newXMLObject
(List content, String id, String mimeType, String encoding) newXMLSignature
(SignedInfo si, KeyInfo ki) newXMLSignature
(SignedInfo si, KeyInfo ki, List objects, String id, String signatureValueId) private XMLSignature
unmarshal
(Node node, XMLCryptoContext context) unmarshalXMLSignature
(XMLValidateContext context) unmarshalXMLSignature
(XMLStructure xmlStructure) Methods inherited from class javax.xml.crypto.dsig.XMLSignatureFactory
getInstance, getInstance, getInstance, getInstance, getKeyInfoFactory, getMechanismType, getProvider
-
Constructor Details
-
DOMXMLSignatureFactory
public DOMXMLSignatureFactory()Initializes a new instance of this class.
-
-
Method Details
-
newXMLSignature
- Specified by:
newXMLSignature
in classXMLSignatureFactory
-
newXMLSignature
public XMLSignature newXMLSignature(SignedInfo si, KeyInfo ki, List objects, String id, String signatureValueId) - Specified by:
newXMLSignature
in classXMLSignatureFactory
-
newReference
- Specified by:
newReference
in classXMLSignatureFactory
-
newReference
- Specified by:
newReference
in classXMLSignatureFactory
-
newReference
public Reference newReference(String uri, DigestMethod dm, List appliedTransforms, Data result, List transforms, String type, String id) - Specified by:
newReference
in classXMLSignatureFactory
-
newReference
public Reference newReference(String uri, DigestMethod dm, List transforms, String type, String id, byte[] digestValue) - Specified by:
newReference
in classXMLSignatureFactory
-
newSignedInfo
- Specified by:
newSignedInfo
in classXMLSignatureFactory
-
newSignedInfo
public SignedInfo newSignedInfo(CanonicalizationMethod cm, SignatureMethod sm, List references, String id) - Specified by:
newSignedInfo
in classXMLSignatureFactory
-
newXMLObject
- Specified by:
newXMLObject
in classXMLSignatureFactory
-
newManifest
- Specified by:
newManifest
in classXMLSignatureFactory
-
newManifest
- Specified by:
newManifest
in classXMLSignatureFactory
-
newSignatureProperties
- Specified by:
newSignatureProperties
in classXMLSignatureFactory
-
newSignatureProperty
- Specified by:
newSignatureProperty
in classXMLSignatureFactory
-
unmarshalXMLSignature
- Specified by:
unmarshalXMLSignature
in classXMLSignatureFactory
- Throws:
MarshalException
-
unmarshalXMLSignature
- Specified by:
unmarshalXMLSignature
in classXMLSignatureFactory
- Throws:
MarshalException
-
unmarshal
- Throws:
MarshalException
-
isFeatureSupported
- Specified by:
isFeatureSupported
in classXMLSignatureFactory
-
newDigestMethod
public DigestMethod newDigestMethod(String algorithm, DigestMethodParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
newDigestMethod
in classXMLSignatureFactory
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
newSignatureMethod
public SignatureMethod newSignatureMethod(String algorithm, SignatureMethodParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
newSignatureMethod
in classXMLSignatureFactory
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
newTransform
public Transform newTransform(String algorithm, TransformParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
newTransform
in classXMLSignatureFactory
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
newTransform
public Transform newTransform(String algorithm, XMLStructure params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
newTransform
in classXMLSignatureFactory
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
newCanonicalizationMethod
public CanonicalizationMethod newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
newCanonicalizationMethod
in classXMLSignatureFactory
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
newCanonicalizationMethod
public CanonicalizationMethod newCanonicalizationMethod(String algorithm, XMLStructure params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
newCanonicalizationMethod
in classXMLSignatureFactory
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
getURIDereferencer
- Specified by:
getURIDereferencer
in classXMLSignatureFactory
-