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

public Class DEREncodedKeyValue

extends Signature11ElementProxy
implements KeyInfoContent
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.keys.content.KeyInfoContent
Imports
java.security.KeyFactory, .NoSuchAlgorithmException, .PublicKey, java.security.spec.InvalidKeySpecException, .X509EncodedKeySpec, com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException, com.sun.org.apache.xml.internal.security.utils.Constants, .Signature11ElementProxy, org.w3c.dom.Document, .Element

Provides content model support for the dsig11:DEREncodedKeyvalue element.

Field Summary

Modifier and TypeField and Description
private static final String[]
supportedKeyTypes

JCA algorithm key types supported by this implementation.

Constructor Summary

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

Constructor DEREncodedKeyValue

public
DEREncodedKeyValue(Document doc, PublicKey publicKey)

Constructor DEREncodedKeyValue

public
DEREncodedKeyValue(Document doc, byte[] encodedKey)

Constructor DEREncodedKeyValue

Method Summary

Modifier and TypeMethod and Description
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.

protected byte[]

Returns:

the public key
getEncodedDER
(PublicKey publicKey)

Method getEncodedDER

public String

Returns:

the Id attribute
getId
()

Returns the Id attribute

public PublicKey

Returns:

the public key
getPublicKey
()

Method getPublicKey

public void
setId(String
ID
id
)

Sets the Id attribute

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

Field Detail

supportedKeyTypesback to summary
private static final String[] supportedKeyTypes

JCA algorithm key types supported by this implementation.

Constructor Detail

DEREncodedKeyValueback to summary
public DEREncodedKeyValue(Element element, String baseURI) throws XMLSecurityException

Constructor DEREncodedKeyValue

DEREncodedKeyValueback to summary
public DEREncodedKeyValue(Document doc, PublicKey publicKey) throws XMLSecurityException

Constructor DEREncodedKeyValue

DEREncodedKeyValueback to summary
public DEREncodedKeyValue(Document doc, byte[] encodedKey)

Constructor DEREncodedKeyValue

Method Detail

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
getEncodedDERback to summary
protected byte[] getEncodedDER(PublicKey publicKey) throws XMLSecurityException

Method getEncodedDER

Returns:byte[]

the public key

getIdback to summary
public String getId()

Returns the Id attribute

Returns:String

the Id attribute

getPublicKeyback to summary
public PublicKey getPublicKey() throws XMLSecurityException

Method getPublicKey

Returns:PublicKey

the public key

setIdback to summary
public void setId(String id)

Sets the Id attribute

Parameters
id:String

ID