public final class ECDSAUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ECDSAUtils.ECCurveDefinition |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertASN1toXMLDSIG(byte[] asn1Bytes)
Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value.
|
static byte[] |
convertXMLDSIGtoASN1(byte[] xmldsigBytes)
Converts a XML Signature ECDSA Value to an ASN.1 DSA value.
|
static ECPoint |
decodePoint(byte[] encodedBytes,
EllipticCurve elliptiCcurve) |
static byte[] |
encodePoint(ECPoint ecPoint,
EllipticCurve ellipticCurve) |
static ECDSAUtils.ECCurveDefinition |
getECCurveDefinition(String oid) |
static String |
getOIDFromPublicKey(ECPublicKey ecPublicKey) |
static byte[] |
stripLeadingZeros(byte[] bytes) |
public static byte[] convertASN1toXMLDSIG(byte[] asn1Bytes) throws IOException
asn1Bytes
- IOException
public static byte[] convertXMLDSIGtoASN1(byte[] xmldsigBytes) throws IOException
xmldsigBytes
- IOException
public static String getOIDFromPublicKey(ECPublicKey ecPublicKey)
public static ECDSAUtils.ECCurveDefinition getECCurveDefinition(String oid)
public static byte[] encodePoint(ECPoint ecPoint, EllipticCurve ellipticCurve)
public static ECPoint decodePoint(byte[] encodedBytes, EllipticCurve elliptiCcurve)
public static byte[] stripLeadingZeros(byte[] bytes)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.