Class ECDSAUtils
- java.lang.Object
-
- org.apache.xml.security.stax.impl.algorithms.ECDSAUtils
-
@Deprecated public final class ECDSAUtils extends java.lang.ObjectDeprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classECDSAUtils.ECCurveDefinitionDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateECDSAUtils()Deprecated.
-
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 java.security.spec.ECPointdecodePoint(byte[] encodedBytes, java.security.spec.EllipticCurve ellipticCurve)Deprecated.static byte[]encodePoint(java.security.spec.ECPoint ecPoint, java.security.spec.EllipticCurve ellipticCurve)Deprecated.static ECDSAUtils.ECCurveDefinitiongetECCurveDefinition(java.lang.String oid)Deprecated.static java.lang.StringgetOIDFromPublicKey(java.security.interfaces.ECPublicKey ecPublicKey)Deprecated.static byte[]stripLeadingZeros(byte[] bytes)Deprecated.
-
-
-
Method Detail
-
convertASN1toXMLDSIG
public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes) throws java.io.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:
java.io.IOException- See Also:
- 6.4.1 DSA, 3.3. ECDSA Signatures
-
convertXMLDSIGtoASN1
public static byte[] convertXMLDSIGtoASN1(byte[] xmldsigBytes) throws java.io.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:
java.io.IOException- See Also:
- 6.4.1 DSA, 3.3. ECDSA Signatures
-
getOIDFromPublicKey
public static java.lang.String getOIDFromPublicKey(java.security.interfaces.ECPublicKey ecPublicKey)
Deprecated.
-
getECCurveDefinition
public static ECDSAUtils.ECCurveDefinition getECCurveDefinition(java.lang.String oid)
Deprecated.
-
encodePoint
public static byte[] encodePoint(java.security.spec.ECPoint ecPoint, java.security.spec.EllipticCurve ellipticCurve)Deprecated.
-
decodePoint
public static java.security.spec.ECPoint decodePoint(byte[] encodedBytes, java.security.spec.EllipticCurve ellipticCurve)Deprecated.
-
stripLeadingZeros
public static byte[] stripLeadingZeros(byte[] bytes)
Deprecated.
-
-