Class ECKeyValue
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.utils.Signature11ElementProxy
org.apache.xml.security.keys.content.keyvalues.ECKeyValue
- All Implemented Interfaces:
KeyValueContent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ECKeyValue.Curve
private static final ECKeyValue.Curve
private static final ECKeyValue.Curve
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
Constructor Summary
ConstructorsConstructorDescriptionECKeyValue
(Document doc, Key key) Constructor DSAKeyValueECKeyValue
(Element element, String baseURI) Constructor DSAKeyValue -
Method Summary
Modifier and TypeMethodDescriptionprivate static BigInteger
private static ECPoint
decodePoint
(byte[] data, EllipticCurve curve) private static byte[]
encodePoint
(ECPoint point, EllipticCurve curve) Returns the localname of the Elements of the sub-class.private static String
getCurveOid
(ECParameterSpec params) private static ECParameterSpec
getECParameterSpec
(String oid) private static Element
getFirstChildElement
(Node node) private static Element
getNextSiblingElement
(Node node) private static Element
getNextSiblingElement
(Node node, String localName, String namespaceURI) Method getPublicKeyprivate static ECKeyValue.Curve
initializeCurve
(String name, String oid, String sfield, String a, String b, String x, String y, String n, int h) private static boolean
matchCurve
(ECParameterSpec params, ECKeyValue.Curve curve) private static byte[]
trimZeroes
(byte[] b) private static Element
verifyElement
(Element elem, String localName, String namespaceURI) Methods inherited from class org.apache.xml.security.utils.Signature11ElementProxy
getBaseNamespace
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
Field Details
-
SECP256R1
-
SECP384R1
-
SECP521R1
-
-
Constructor Details
-
ECKeyValue
Constructor DSAKeyValue- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
ECKeyValue
Constructor DSAKeyValue- Parameters:
doc
-key
-- Throws:
IllegalArgumentException
-
-
Method Details
-
initializeCurve
-
getPublicKey
Method getPublicKey- Specified by:
getPublicKey
in interfaceKeyValueContent
- Returns:
- the public key
- Throws:
XMLSecurityException
-
getBaseLocalName
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-
getFirstChildElement
-
getNextSiblingElement
private static Element getNextSiblingElement(Node node, String localName, String namespaceURI) throws MarshalException - Throws:
MarshalException
-
getNextSiblingElement
-
verifyElement
private static Element verifyElement(Element elem, String localName, String namespaceURI) throws MarshalException - Throws:
MarshalException
-
getCurveOid
-
matchCurve
-
decodePoint
- Throws:
IOException
-
encodePoint
-
trimZeroes
private static byte[] trimZeroes(byte[] b) -
getECParameterSpec
-
bigInt
-