Class DOMKeyValue.EC
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue<ECPublicKey>
org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue.EC
- All Implemented Interfaces:
KeyValue
,XMLStructure
- Enclosing class:
- DOMKeyValue<K extends PublicKey>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue
DOMKeyValue.DSA, DOMKeyValue.EC, DOMKeyValue.RSA, DOMKeyValue.Unknown
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyFactory
private ECParameterSpec
private byte[]
private static final DOMKeyValue.EC.Curve
private static final DOMKeyValue.EC.Curve
private static final DOMKeyValue.EC.Curve
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ECPoint
decodePoint
(byte[] data, EllipticCurve curve) private static byte[]
encodePoint
(ECPoint point, EllipticCurve curve) private static String
getCurveOid
(ECParameterSpec params) private static ECParameterSpec
getECParameterSpec
(String oid) private static DOMKeyValue.EC.Curve
initializeCurve
(String name, String oid, String sfield, String a, String b, String x, String y, String n, int h) (package private) void
marshalPublicKey
(Node parent, Document doc, String dsPrefix, DOMCryptoContext context) private static boolean
matchCurve
(ECParameterSpec params, DOMKeyValue.EC.Curve curve) private static byte[]
trimZeroes
(byte[] b) (package private) ECPublicKey
unmarshalKeyValue
(Element kvtElem) Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue
decode, equals, getPublicKey, hashCode, marshal, unmarshal
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Field Details
-
ecPublicKey
private byte[] ecPublicKey -
eckf
-
ecParams
-
SECP256R1
-
SECP384R1
-
SECP521R1
-
-
Constructor Details
-
EC
EC(ECPublicKey ecKey) throws KeyException - Throws:
KeyException
-
EC
EC(Element dmElem) throws MarshalException - Throws:
MarshalException
-
-
Method Details
-
initializeCurve
-
decodePoint
- Throws:
IOException
-
encodePoint
-
trimZeroes
private static byte[] trimZeroes(byte[] b) -
getCurveOid
-
matchCurve
-
marshalPublicKey
void marshalPublicKey(Node parent, Document doc, String dsPrefix, DOMCryptoContext context) throws MarshalException - Specified by:
marshalPublicKey
in classDOMKeyValue<ECPublicKey>
- Throws:
MarshalException
-
unmarshalKeyValue
- Specified by:
unmarshalKeyValue
in classDOMKeyValue<ECPublicKey>
- Throws:
MarshalException
-
getECParameterSpec
-