Module org.apache.santuario.xmlsec
Class DOMSignatureMethod.AbstractECDSASignatureMethod
- 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
-
- org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod.AbstractECDSASignatureMethod
-
- All Implemented Interfaces:
javax.xml.crypto.AlgorithmMethod,javax.xml.crypto.dsig.SignatureMethod,javax.xml.crypto.XMLStructure
- Direct Known Subclasses:
DOMSignatureMethod.RIPEMD160withECDSA,DOMSignatureMethod.SHA1withECDSA,DOMSignatureMethod.SHA224withECDSA,DOMSignatureMethod.SHA256withECDSA,DOMSignatureMethod.SHA3_224withECDSA,DOMSignatureMethod.SHA3_256withECDSA,DOMSignatureMethod.SHA3_384withECDSA,DOMSignatureMethod.SHA3_512withECDSA,DOMSignatureMethod.SHA384withECDSA,DOMSignatureMethod.SHA512withECDSA
- Enclosing class:
- DOMSignatureMethod
abstract static class DOMSignatureMethod.AbstractECDSASignatureMethod extends DOMSignatureMethod.AbstractP1363FormatSignatureMethod
-
-
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.SHA512withRSAandMGF1
-
Nested classes/interfaces inherited from class org.apache.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod
AbstractDOMSignatureMethod.Type
-
-
Field Summary
-
Fields inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod.AbstractP1363FormatSignatureMethod
asn1
-
Fields 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_MGF1
-
-
Constructor Summary
Constructors Constructor Description AbstractECDSASignatureMethod(java.security.spec.AlgorithmParameterSpec params)AbstractECDSASignatureMethod(org.w3c.dom.Element dmElem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AbstractDOMSignatureMethod.TypegetAlgorithmType()Returns the type of signature algorithm.(package private) byte[]postSignFormat(java.security.Key key, byte[] sig)Returns the signature bytes with any additional formatting necessary for the signature algorithm used.(package private) byte[]preVerifyFormat(java.security.Key key, byte[] sig)Returns the signature bytes with any conversions that are necessary before the signature can be verified.-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod.AbstractP1363FormatSignatureMethod
getJCAFallbackAlgorithm, getSignature
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod
getParameterSpec, sign, unmarshal, verify
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod
checkParams, equals, getJCAAlgorithm, hashCode, marshal, marshalParams, paramsEqual, unmarshalParams
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, isFeatureSupported
-
-
-
-
Constructor Detail
-
AbstractECDSASignatureMethod
AbstractECDSASignatureMethod(java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidAlgorithmParameterException- Throws:
java.security.InvalidAlgorithmParameterException
-
AbstractECDSASignatureMethod
AbstractECDSASignatureMethod(org.w3c.dom.Element dmElem) throws javax.xml.crypto.MarshalException- Throws:
javax.xml.crypto.MarshalException
-
-
Method Detail
-
postSignFormat
byte[] postSignFormat(java.security.Key key, byte[] sig) throws java.io.IOExceptionDescription copied from class:DOMSignatureMethodReturns the signature bytes with any additional formatting necessary for the signature algorithm used. For RSA signatures, no changes are required, and this method should simply return backsig. For DSA and ECDSA, this method should return the signature in the IEEE P1363 format, the concatenation of r and s.- Specified by:
postSignFormatin classDOMSignatureMethod- Parameters:
key- the key used to signsig- the signature returned bySignature.sign()- Returns:
- the formatted signature
- Throws:
java.io.IOException
-
preVerifyFormat
byte[] preVerifyFormat(java.security.Key key, byte[] sig) throws java.io.IOExceptionDescription copied from class:DOMSignatureMethodReturns the signature bytes with any conversions that are necessary before the signature can be verified. For RSA signatures, no changes are required, and this method should simply return backsig. For DSA and ECDSA, this method should return the signature in the DER-encoded ASN.1 format.- Specified by:
preVerifyFormatin classDOMSignatureMethod- Parameters:
key- the key used to signsig- the signature- Returns:
- the formatted signature
- Throws:
java.io.IOException
-
getAlgorithmType
AbstractDOMSignatureMethod.Type getAlgorithmType()
Description copied from class:AbstractDOMSignatureMethodReturns the type of signature algorithm.- Specified by:
getAlgorithmTypein classAbstractDOMSignatureMethod
-
-