Module org.apache.santuario.xmlsec
Class DOMSignatureMethod.AbstractP1363FormatSignatureMethod
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod
org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod
org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod.AbstractP1363FormatSignatureMethod
- All Implemented Interfaces:
AlgorithmMethod,SignatureMethod,XMLStructure
- Direct Known Subclasses:
DOMSignatureMethod.AbstractDSASignatureMethod,DOMSignatureMethod.AbstractECDSASignatureMethod
- Enclosing class:
- DOMSignatureMethod
abstract static class DOMSignatureMethod.AbstractP1363FormatSignatureMethod
extends DOMSignatureMethod
Abstract class to support signature algorithms that sign and verify
signatures in the IEEE P1363 format. The P1363 format is the
concatenation of r and s in DSA and ECDSA signatures, and thus, only
DSA and ECDSA signature methods should extend this class. Subclasses
must supply a fallback algorithm to be used when the provider does
not offer signature algorithms that use the P1363 format.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod
DOMSignatureMethod.AbstractDSASignatureMethod, DOMSignatureMethod.AbstractECDSASignatureMethod, DOMSignatureMethod.AbstractEDDSASignatureMethod, DOMSignatureMethod.AbstractP1363FormatSignatureMethod, DOMSignatureMethod.AbstractRSAPSSSignatureMethod, DOMSignatureMethod.AbstractRSASignatureMethod, DOMSignatureMethod.EDDSA_ED25519, DOMSignatureMethod.EDDSA_ED448, DOMSignatureMethod.RIPEMD160withECDSA, DOMSignatureMethod.RIPEMD160withRSA, DOMSignatureMethod.RIPEMD160withRSAandMGF1, DOMSignatureMethod.SHA1withDSA, DOMSignatureMethod.SHA1withECDSA, DOMSignatureMethod.SHA1withRSA, DOMSignatureMethod.SHA1withRSAandMGF1, DOMSignatureMethod.SHA224withECDSA, DOMSignatureMethod.SHA224withRSA, DOMSignatureMethod.SHA224withRSAandMGF1, DOMSignatureMethod.SHA256withDSA, DOMSignatureMethod.SHA256withECDSA, DOMSignatureMethod.SHA256withRSA, DOMSignatureMethod.SHA256withRSAandMGF1, DOMSignatureMethod.SHA3_224withECDSA, DOMSignatureMethod.SHA3_224withRSAandMGF1, DOMSignatureMethod.SHA3_256withECDSA, DOMSignatureMethod.SHA3_256withRSAandMGF1, DOMSignatureMethod.SHA3_384withECDSA, DOMSignatureMethod.SHA3_384withRSAandMGF1, DOMSignatureMethod.SHA3_512withECDSA, DOMSignatureMethod.SHA3_512withRSAandMGF1, DOMSignatureMethod.SHA384withECDSA, DOMSignatureMethod.SHA384withRSA, DOMSignatureMethod.SHA384withRSAandMGF1, DOMSignatureMethod.SHA512withECDSA, DOMSignatureMethod.SHA512withRSA, DOMSignatureMethod.SHA512withRSAandMGF1Nested classes/interfaces inherited from class org.apache.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod
AbstractDOMSignatureMethod.Type -
Field Summary
FieldsFields inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod
DSA_SHA256, ECDSA_RIPEMD160, ECDSA_SHA1, ECDSA_SHA224, ECDSA_SHA256, ECDSA_SHA3_224, ECDSA_SHA3_256, ECDSA_SHA3_384, ECDSA_SHA3_512, ECDSA_SHA384, ECDSA_SHA512, ED25519, ED448, RSA_RIPEMD160, RSA_RIPEMD160_MGF1, RSA_SHA1_MGF1, RSA_SHA224, RSA_SHA224_MGF1, RSA_SHA256, RSA_SHA256_MGF1, RSA_SHA3_224_MGF1, RSA_SHA3_256_MGF1, RSA_SHA3_384_MGF1, RSA_SHA3_512_MGF1, RSA_SHA384, RSA_SHA384_MGF1, RSA_SHA512, RSA_SHA512_MGF1Fields inherited from interface javax.xml.crypto.dsig.SignatureMethod
DSA_SHA1, HMAC_SHA1, HMAC_SHA224, HMAC_SHA256, HMAC_SHA384, HMAC_SHA512, RSA_SHA1, SHA1_RSA_MGF1, SHA224_RSA_MGF1, SHA256_RSA_MGF1, SHA384_RSA_MGF1, SHA512_RSA_MGF1 -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod
getParameterSpec, postSignFormat, preVerifyFormat, sign, unmarshal, verifyMethods inherited from class org.apache.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod
checkParams, equals, getAlgorithmType, getJCAAlgorithm, hashCode, marshal, marshalParams, paramsEqual, unmarshalParamsMethods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, isFeatureSupportedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.crypto.AlgorithmMethod
getAlgorithmMethods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Field Details
-
asn1
boolean asn1
-
-
Constructor Details
-
AbstractP1363FormatSignatureMethod
AbstractP1363FormatSignatureMethod(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException -
AbstractP1363FormatSignatureMethod
AbstractP1363FormatSignatureMethod(Element dmElem) throws MarshalException - Throws:
MarshalException
-
-
Method Details
-
getJCAFallbackAlgorithm
Return the fallback algorithm to be used when the provider does not support signatures in the IEEE P1363 format. This algorithm should return signatures in the DER-encoded ASN.1 format. -
getSignature
Description copied from class:DOMSignatureMethodReturns an instance of Signature from the specified Provider. The algorithm is specified by thegetJCAAlgorithm()method.- Overrides:
getSignaturein classDOMSignatureMethod- Parameters:
p- the Provider to use- Returns:
- an instance of Signature implementing the algorithm
specified by
getJCAAlgorithm() - Throws:
NoSuchAlgorithmException- if the Provider does not support the signature algorithm
-