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 DOMKeyValue
DOMKeyValue.DSA, DOMKeyValue.EC, DOMKeyValue.RSA, DOMKeyValue.Unknown -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyFactoryprivate ECParameterSpecprivate byte[]private static final DOMKeyValue.EC.Curveprivate static final DOMKeyValue.EC.Curveprivate static final DOMKeyValue.EC.Curve -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ECPointdecodePoint(byte[] data, EllipticCurve curve) private static byte[]encodePoint(ECPoint point, EllipticCurve curve) private static StringgetCurveOid(ECParameterSpec params) private static ECParameterSpecgetECParameterSpec(String oid) private static DOMKeyValue.EC.CurveinitializeCurve(String name, String oid, String sfield, String a, String b, String x, String y, String n, int h) (package private) voidmarshalPublicKey(Node parent, Document doc, String dsPrefix, DOMCryptoContext context) private static booleanmatchCurve(ECParameterSpec params, DOMKeyValue.EC.Curve curve) private static byte[]trimZeroes(byte[] b) (package private) ECPublicKeyunmarshalKeyValue(Element kvtElem) Methods inherited from class DOMKeyValue
decode, equals, getPublicKey, hashCode, marshal, unmarshalMethods inherited from class DOMStructure
isFeatureSupportedMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
marshalPublicKeyin classDOMKeyValue<ECPublicKey>- Throws:
MarshalException
-
unmarshalKeyValue
- Specified by:
unmarshalKeyValuein classDOMKeyValue<ECPublicKey>- Throws:
MarshalException
-
getECParameterSpec
-