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 的名称。
|
isFeatureSupported
String 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.