FileDocCategorySizeDatePackage
KeyName.javaAPI DocJava SE 6 API1417Tue Jun 10 00:27:06 BST 2008javax.xml.crypto.dsig.keyinfo

KeyName

public interface KeyName implements XMLStructure
A representation of the XML KeyName element as defined in the W3C Recommendation for XML-Signature Syntax and Processing. A KeyName object contains a string value which may be used by the signer to communicate a key identifier to the recipient. The XML Schema Definition is defined as:
<element name="KeyName" type="string"/>
A KeyName instance may be created by invoking the {@link KeyInfoFactory#newKeyName newKeyName} method of the {@link KeyInfoFactory} class, and passing it a String representing the name of the key; for example:
KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
KeyName keyName = factory.newKeyName("Alice");
author
Sean Mullan
author
JSR 105 Expert Group
since
1.6
see
KeyInfoFactory#newKeyName(String)

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetName()
Returns the name of this KeyName.

return
the name of this KeyName (never null)