Class KeyValue
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.utils.SignatureElementProxy
org.apache.xml.security.keys.content.KeyValue
- All Implemented Interfaces:
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.
-
Field Summary
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor KeyValueKeyValue
(Document doc, DSAKeyValue dsaKeyValue) Constructor KeyValueKeyValue
(Document doc, RSAKeyValue rsaKeyValue) Constructor KeyValueConstructor KeyValueConstructor KeyValue -
Method Summary
Modifier and TypeMethodDescriptionReturns the localname of the Elements of the sub-class.Method getPublicKeyMethods 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
-
Constructor Details
-
KeyValue
Constructor KeyValue- Parameters:
doc
-dsaKeyValue
-
-
KeyValue
Constructor KeyValue- Parameters:
doc
-rsaKeyValue
-
-
KeyValue
Constructor KeyValue- Parameters:
doc
-unknownKeyValue
-
-
KeyValue
Constructor KeyValue- Parameters:
doc
-pk
-
-
KeyValue
Constructor KeyValue- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
-
Method Details
-
getPublicKey
Method getPublicKey- Returns:
- the public key
- Throws:
XMLSecurityException
-
getBaseLocalName
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-