Class ECDSAUtils
- java.lang.Object
-
- org.apache.xml.security.stax.impl.algorithms.ECDSAUtils
-
@Deprecated public final class ECDSAUtils extends Object
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classECDSAUtils.ECCurveDefinitionDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static byte[]convertASN1toXMLDSIG(byte[] asn1Bytes)Deprecated.Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value.static byte[]convertXMLDSIGtoASN1(byte[] xmldsigBytes)Deprecated.Converts a XML Signature ECDSA Value to an ASN.1 DSA value.static ECPointdecodePoint(byte[] encodedBytes, EllipticCurve ellipticCurve)Deprecated.static byte[]encodePoint(ECPoint ecPoint, EllipticCurve ellipticCurve)Deprecated.static ECDSAUtils.ECCurveDefinitiongetECCurveDefinition(String oid)Deprecated.static StringgetOIDFromPublicKey(ECPublicKey ecPublicKey)Deprecated.static byte[]stripLeadingZeros(byte[] bytes)Deprecated.
-
-
-
Method Detail
-
convertASN1toXMLDSIG
public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes) throws IOExceptionDeprecated.Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value. The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r,s) value pairs; the XML Signature requires the core BigInteger values.- Parameters:
asn1Bytes-- Returns:
- the decode bytes
- Throws:
IOException- See Also:
- 6.4.1 DSA, 3.3. ECDSA Signatures
-
convertXMLDSIGtoASN1
public static byte[] convertXMLDSIGtoASN1(byte[] xmldsigBytes) throws IOExceptionDeprecated.Converts a XML Signature ECDSA Value to an ASN.1 DSA value. The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r,s) value pairs; the XML Signature requires the core BigInteger values.- Parameters:
xmldsigBytes-- Returns:
- the encoded ASN.1 bytes
- Throws:
IOException- See Also:
- 6.4.1 DSA, 3.3. ECDSA Signatures
-
getOIDFromPublicKey
public static String getOIDFromPublicKey(ECPublicKey ecPublicKey)
Deprecated.
-
getECCurveDefinition
public static ECDSAUtils.ECCurveDefinition getECCurveDefinition(String oid)
Deprecated.
-
encodePoint
public static byte[] encodePoint(ECPoint ecPoint, EllipticCurve ellipticCurve)
Deprecated.
-
decodePoint
public static ECPoint decodePoint(byte[] encodedBytes, EllipticCurve ellipticCurve)
Deprecated.
-
stripLeadingZeros
public static byte[] stripLeadingZeros(byte[] bytes)
Deprecated.
-
-