Top Inners Fields Constructors Methods
com.sun.org.apache.xml.internal.security.keys.content.keyvalues

public Class ECKeyValue

extends Signature11ElementProxy
implements KeyValueContent
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.keys.content.keyvalues.KeyValueContent
Imports
java.io.IOException, java.math.BigInteger, java.security.Key, .KeyFactory, .NoSuchAlgorithmException, .PublicKey, java.security.interfaces.ECPublicKey, java.security.spec.ECField, .ECFieldFp, .ECParameterSpec, .ECPoint, .ECPublicKeySpec, .EllipticCurve, .InvalidKeySpecException, java.util.Arrays, javax.xml.crypto.MarshalException, com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException, com.sun.org.apache.xml.internal.security.utils.Constants, .I18n, .Signature11ElementProxy, .XMLUtils, org.w3c.dom.Document, .Element, .Node, .Text

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final ECKeyValue.Curve
private static final ECKeyValue.Curve
private static final ECKeyValue.Curve

Constructor Summary

AccessConstructor and Description
public
ECKeyValue(Element element, String baseURI)

Constructor DSAKeyValue

public
ECKeyValue(Document doc, Key key)

Constructor DSAKeyValue

Method Summary

Modifier and TypeMethod and Description
private static BigInteger
private static ECPoint
decodePoint(byte[] data, EllipticCurve curve)

private static byte[]
public String
getBaseLocalName()

Implements abstract com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Returns the localname of the Elements of the sub-class.

private static String
private static ECParameterSpec
private static Element
private static Element
getNextSiblingElement(Node node, String localName, String namespaceURI)

private static Element
public PublicKey
private 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
private static byte[]
trimZeroes(byte[] b)

private static Element
verifyElement(Element elem, String localName, String namespaceURI)

Inherited from com.sun.org.apache.xml.internal.security.utils.Signature11ElementProxy:
getBaseNamespace

Field Detail

SECP256R1back to summary
private static final ECKeyValue.Curve SECP256R1
SECP384R1back to summary
private static final ECKeyValue.Curve SECP384R1
SECP521R1back to summary
private static final ECKeyValue.Curve SECP521R1

Constructor Detail

ECKeyValueback to summary
public ECKeyValue(Element element, String baseURI) throws XMLSecurityException

Constructor DSAKeyValue

ECKeyValueback to summary
public ECKeyValue(Document doc, Key key) throws IllegalArgumentException

Constructor DSAKeyValue

Method Detail

bigIntback to summary
private static BigInteger bigInt(String s)
decodePointback to summary
private static ECPoint decodePoint(byte[] data, EllipticCurve curve) throws IOException
encodePointback to summary
private static byte[] encodePoint(ECPoint point, EllipticCurve curve)
getBaseLocalNameback to summary
public String getBaseLocalName()

Implements abstract com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Doc from com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Returns the localname of the Elements of the sub-class.

Returns:String

the localname of the Elements of the sub-class.

Annotations
@Override
getCurveOidback to summary
private static String getCurveOid(ECParameterSpec params)
getECParameterSpecback to summary
private static ECParameterSpec getECParameterSpec(String oid)
getFirstChildElementback to summary
private static Element getFirstChildElement(Node node)
getNextSiblingElementback to summary
private static Element getNextSiblingElement(Node node, String localName, String namespaceURI) throws MarshalException
getNextSiblingElementback to summary
private static Element getNextSiblingElement(Node node)
getPublicKeyback to summary
public PublicKey getPublicKey() throws XMLSecurityException

Implements com.sun.org.apache.xml.internal.security.keys.content.keyvalues.KeyValueContent.getPublicKey.

Doc from com.sun.org.apache.xml.internal.security.keys.content.keyvalues.KeyValueContent.getPublicKey.

Method getPublicKey

Returns:PublicKey

the public key

Annotations
@Override
initializeCurveback to summary
private static ECKeyValue.Curve initializeCurve(String name, String oid, String sfield, String a, String b, String x, String y, String n, int h)
matchCurveback to summary
private static boolean matchCurve(ECParameterSpec params, ECKeyValue.Curve curve)
trimZeroesback to summary
private static byte[] trimZeroes(byte[] b)
verifyElementback to summary
private static Element verifyElement(Element elem, String localName, String namespaceURI) throws MarshalException
com.sun.org.apache.xml.internal.security.keys.content.keyvalues back to summary

pack-priv final Class ECKeyValue.Curve

extends ECParameterSpec
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
Curve(String name, String oid, EllipticCurve curve, ECPoint g, BigInteger n, int h)

Method Summary

Modifier and TypeMethod and Description
private String
private String
Inherited from java.security.spec.ECParameterSpec:
getCofactorgetCurvegetGeneratorgetOrder

Field Detail

nameback to summary
private final String name
oidback to summary
private final String oid

Constructor Detail

Curveback to summary
pack-priv Curve(String name, String oid, EllipticCurve curve, ECPoint g, BigInteger n, int h)

Method Detail

getNameback to summary
private String getName()
getObjectIdback to summary
private String getObjectId()