public interface KeyName extends XMLStructure
KeyName元素的表示 。
KeyName对象包含一个字符串值,该值可由签名者用来将密钥标识符传递给收件人。
XML模式定义定义为:
<element name="KeyName" type="string"/>
可以通过调用KeyInfoFactory类的newKeyName方法创建一个KeyName实例,并传递一个String密钥名称的String;
例如:
KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
KeyName keyName = factory.newKeyName("Alice");
KeyInfoFactory.newKeyName(String)
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
返回此
KeyName的名称。
|
isFeatureSupportedString getName()
KeyName的名称。
KeyName (never
null)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.