org.apache.xml.security.keys.content
Class KeyValue

java.lang.Object
  extended by org.apache.xml.security.utils.ElementProxy
      extended by org.apache.xml.security.utils.SignatureElementProxy
          extended by org.apache.xml.security.keys.content.KeyValue
All Implemented Interfaces:
KeyInfoContent

public class KeyValue
extends SignatureElementProxy
implements KeyInfoContent

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.

Author:
$Author: coheigea $

Field Summary
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, log
 
Constructor Summary
KeyValue(Document doc, DSAKeyValue dsaKeyValue)
          Constructor KeyValue
KeyValue(Document doc, Element unknownKeyValue)
          Constructor KeyValue
KeyValue(Document doc, PublicKey pk)
          Constructor KeyValue
KeyValue(Document doc, RSAKeyValue rsaKeyValue)
          Constructor KeyValue
KeyValue(Element element, String BaseURI)
          Constructor KeyValue
 
Method Summary
 String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 PublicKey getPublicKey()
          Method getPublicKey
 
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValue

public KeyValue(Document doc,
                DSAKeyValue dsaKeyValue)
Constructor KeyValue

Parameters:
doc -
dsaKeyValue -

KeyValue

public KeyValue(Document doc,
                RSAKeyValue rsaKeyValue)
Constructor KeyValue

Parameters:
doc -
rsaKeyValue -

KeyValue

public KeyValue(Document doc,
                Element unknownKeyValue)
Constructor KeyValue

Parameters:
doc -
unknownKeyValue -

KeyValue

public KeyValue(Document doc,
                PublicKey pk)
Constructor KeyValue

Parameters:
doc -
pk -

KeyValue

public KeyValue(Element element,
                String BaseURI)
         throws XMLSecurityException
Constructor KeyValue

Parameters:
element -
BaseURI -
Throws:
XMLSecurityException
Method Detail

getPublicKey

public PublicKey getPublicKey()
                       throws XMLSecurityException
Method getPublicKey

Returns:
the public key
Throws:
XMLSecurityException

getBaseLocalName

public String getBaseLocalName()
Description copied from class: ElementProxy
Returns the localname of the Elements of the sub-class.

Specified by:
getBaseLocalName in class ElementProxy
Returns:
the localname of the Elements of the sub-class.


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.