public interface X509Data extends XMLStructure
X509Data
元素的表示 。
X509Data
对象包含一个或多个密钥或X.509证书(或证书标识符或撤销列表)的标识符。
XML模式定义定义为:
<element name="X509Data" type="ds:X509DataType"/>
<complexType name="X509DataType">
<sequence maxOccurs="unbounded">
<choice>
<element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
<element name="X509SKI" type="base64Binary"/>
<element name="X509SubjectName" type="string"/>
<element name="X509Certificate" type="base64Binary"/>
<element name="X509CRL" type="base64Binary"/>
<any namespace="##other" processContents="lax"/>
</choice>
</sequence>
</complexType>
<complexType name="X509IssuerSerialType">
<sequence>
<element name="X509IssuerName" type="string"/>
<element name="X509SerialNumber" type="integer"/>
</sequence>
</complexType>
可以通过调用KeyInfoFactory
类的newX509Data
方法并传递一个表示X.509内容的一个或多个XMLStructure
s的列表来创建一个X509Data
实例。
例如:
KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
X509Data x509Data = factory.newX509Data
(Collections.singletonList("cn=Alice"));
KeyInfoFactory.newX509Data(List)
Modifier and Type | Field and Description |
---|---|
static String |
RAW_X509_CERTIFICATE_TYPE
标识二进制文件的URI(ASN.1 DER)X.509证书KeyInfo类型:http://www.w3.org/2000/09/xmldsig#rawX509证书。
|
static String |
TYPE
标识X509Data KeyInfo类型的URI:http://www.w3.org/2000/09/xmldsig#X509Data。
|
Modifier and Type | Method and Description |
---|---|
List |
getContent()
返回此
X509Data的内容
X509Data 。
|
isFeatureSupported
static final String TYPE
RetrievalMethod
类的type
参数的值来描述远程X509Data
结构。
static final String RAW_X509_CERTIFICATE_TYPE
RetrievalMethod
类的type
参数的值来描述远程X509证书。
List getContent()
unmodifiable list
这个内容X509Data
。
有效的类型是String
(主题名称), byte[]
(受试者密钥ID), X509Certificate
, X509CRL
,或XMLStructure
( X509IssuerSerial
从外部命名空间的物体或元件)。
X509Data
(never
null
or empty)
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.