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

public Class KeyValue

extends SignatureElementProxy
implements KeyInfoContent
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.keys.content.KeyInfoContent
Imports
java.security.PublicKey, com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException, com.sun.org.apache.xml.internal.security.keys.content.keyvalues.DSAKeyValue, .ECKeyValue, .RSAKeyValue, com.sun.org.apache.xml.internal.security.utils.Constants, .SignatureElementProxy, .XMLUtils, org.w3c.dom.Document, .Element

The KeyValue element contains a single public key that may be useful in validating the signature. Structured formats for defining DSA (REQUIRED) and RSA (RECOMMENDED) public keys are defined in Signature Algorithms (section 6.4). The KeyValue element may include externally defined public keys values represented as PCDATA or element types from an external namespace.

Constructor Summary

AccessConstructor and Description
public
KeyValue(Document doc, DSAKeyValue dsaKeyValue)

Constructor KeyValue

public
KeyValue(Document doc, RSAKeyValue rsaKeyValue)

Constructor KeyValue

public
KeyValue(Document doc, Element unknownKeyValue)

Constructor KeyValue

public
KeyValue(Document doc, PublicKey pk)

Constructor KeyValue

public
KeyValue(Element element, String baseURI)

Constructor KeyValue

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.

public PublicKey

Returns:

the public key
getPublicKey
()

Method getPublicKey

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

Constructor Detail

KeyValueback to summary
public KeyValue(Document doc, DSAKeyValue dsaKeyValue)

Constructor KeyValue

KeyValueback to summary
public KeyValue(Document doc, RSAKeyValue rsaKeyValue)

Constructor KeyValue

KeyValueback to summary
public KeyValue(Document doc, Element unknownKeyValue)

Constructor KeyValue

KeyValueback to summary
public KeyValue(Document doc, PublicKey pk)

Constructor KeyValue

KeyValueback to summary
public KeyValue(Element element, String baseURI) throws XMLSecurityException

Constructor KeyValue

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
getPublicKeyback to summary
public PublicKey getPublicKey() throws XMLSecurityException

Method getPublicKey

Returns:PublicKey

the public key