public class KeyValue extends BaseElement implements KeyInfoElement
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.
The following schema fragment specifies the expected content contained within this class.
<complexType name="KeyValueType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice>
<element ref="{http://www.w3.org/2000/09/xmldsig#}DSAKeyValue"/>
<element ref="{http://www.w3.org/2000/09/xmldsig#}RSAKeyValue"/>
<any processContents='lax' namespace='##other'/>
</choice>
</restriction>
</complexContent>
</complexType>
DSAKeyValue,
RSAKeyValuemContext, mElement, mId| Constructor and Description |
|---|
KeyValue(Context aBaglam,
java.security.PublicKey aPublicKey) |
KeyValue(org.w3c.dom.Element aElement,
Context aContext)
Construct KeyValue from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalName() |
KeyValueElement |
getValue() |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic KeyValue(Context aBaglam, java.security.PublicKey aPublicKey) throws XMLSignatureException
XMLSignatureExceptionpublic KeyValue(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic KeyValueElement getValue()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.