public interface X509IssuerSerial extends XMLStructure
X509IssuerSerial
元素的表示 。
一个X509IssuerSerial
对象包含X.509颁发者可分辨名称(DN)和序列号对。
XML模式定义定义为:
<element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
<complexType name="X509IssuerSerialType">
<sequence>
<element name="X509IssuerName" type="string"/>
<element name="X509SerialNumber" type="integer"/>
</sequence>
</complexType>
可以通过调用KeyInfoFactory
类的newX509IssuerSerial
方法创建一个X509IssuerSerial
实例,并传递一个String
X.500 DN和序列号的String
和BigInteger
。
下面是创建的一个例子X509IssuerSerial
从发行者DN和现有的序列号X509Certificate
:
KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
X509IssuerSerial issuer = factory.newX509IssuerSerial
(cert.getIssuerX500Principal().getName(), cert.getSerialNumber());
X509Data.getContent()
,
KeyInfoFactory.newX509IssuerSerial(String, BigInteger)
Modifier and Type | Method and Description |
---|---|
String |
getIssuerName()
以
RFC 2253字符串格式返回此
X509IssuerSerial 的X.500可分辨名称。
|
BigInteger |
getSerialNumber()
返回此
X509IssuerSerial 的序列号。
|
isFeatureSupported
String getIssuerName()
X509IssuerSerial
的X.500可分辨名称。
null
)
BigInteger getSerialNumber()
X509IssuerSerial
的序列号。
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.