APIdia Launch Partner
Top Description Methods
javax.xml.crypto.dsig.keyinfo

public Interface KeyName

extends XMLStructure
Known Direct Implementers
org.jcp.xml.dsig.internal.dom.DOMKeyName
Imports
javax.xml.crypto.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 newKeyName method of the 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");
Authors
Sean Mullan, JSR 105 Expert Group
Since
1.6
See Also
KeyInfoFactory#newKeyName(String)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of this KeyName (never null)
getName
()

Returns the name of this KeyName.

Inherited from javax.xml.crypto.XMLStructure:
isFeatureSupported

Method Detail

getNameback to summary
public String getName()

Returns the name of this KeyName.

Returns:String

the name of this KeyName (never null)