public class KeyName extends BaseElement implements KeyInfoElement
The KeyName element contains a string value (in which white space is significant) which may be used by the signer to communicate a key identifier to the recipient. Typically, KeyName contains an identifier related to the key pair used to sign the message, but it may contain other protocol-related information that indirectly identifies a key pair. (Common uses of KeyName include simple string names for keys, a key index, a distinguished name (DN), an email address, etc.)
mContext, mElement, mId| Constructor and Description |
|---|
KeyName(org.w3c.dom.Element aElement,
Context aContext)
Construct KeyName from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalName() |
java.lang.String |
getName() |
void |
setName(java.lang.String aName) |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic KeyName(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 java.lang.String getName()
public void setName(java.lang.String aName)
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.