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.Curveprivate static final ECKeyValue.Curveprivate static final ECKeyValue.CurveFields inherited from class ElementProxy
baseURI, LOG -
Constructor Summary
ConstructorsConstructorDescriptionECKeyValue(Document doc, Key key) Constructor DSAKeyValueECKeyValue(Element element, String baseURI) Constructor DSAKeyValue -
Method Summary
Modifier and TypeMethodDescriptionprivate static BigIntegerprivate static ECPointdecodePoint(byte[] data, EllipticCurve curve) private static byte[]encodePoint(ECPoint point, EllipticCurve curve) Returns the localname of the Elements of the sub-class.private static StringgetCurveOid(ECParameterSpec params) private static ECParameterSpecgetECParameterSpec(String oid) private static ElementgetFirstChildElement(Node node) private static ElementgetNextSiblingElement(Node node) private static ElementgetNextSiblingElement(Node node, String localName, String namespaceURI) Method getPublicKeyprivate static ECKeyValue.CurveinitializeCurve(String name, String oid, String sfield, String a, String b, String x, String y, String n, int h) private static booleanmatchCurve(ECParameterSpec params, ECKeyValue.Curve curve) private static byte[]trimZeroes(byte[] b) private static ElementverifyElement(Element elem, String localName, String namespaceURI) Methods inherited from class Signature11ElementProxy
getBaseNamespaceMethods inherited from class 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:
getPublicKeyin interfaceKeyValueContent- Returns:
- the public key
- Throws:
XMLSecurityException
-
getBaseLocalName
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein 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
-