模块  java.xml.crypto

Interface X509IssuerSerial

  • All Superinterfaces:
    XMLStructure

    public interface X509IssuerSerial
    extends XMLStructure
    X509IssuerSerial中定义的XML 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实例,并将其传递给表示X.500 DN和序列号的StringBigInteger 以下是从颁发者DN和现有X509Certificate序列号创建X509IssuerSerial的示例:
      KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
     X509IssuerSerial issuer = factory.newX509IssuerSerial
         (cert.getIssuerX500Principal().getName(), cert.getSerialNumber()); 
    从以下版本开始:
    1.6
    另请参见:
    X509Data.getContent()KeyInfoFactory.newX509IssuerSerial(String, BigInteger)
    • 方法详细信息

      • getIssuerName

        String getIssuerName()
        RFC 2253字符串格式返回此 X509IssuerSerial的X.500可分辨名称。
        结果
        RFC 2253字符串格式的X.500专有名称(从不 null
      • getSerialNumber

        BigInteger getSerialNumber()
        返回此 X509IssuerSerial的序列号。
        结果
        序列号(从不 null