模块 java.base

类 KeyStore.TrustedCertificateEntry

java.lang.Object
java.security.KeyStore.TrustedCertificateEntry
所有已实现的接口:
KeyStore.Entry
封闭类:
KeyStore

public static final class KeyStore.TrustedCertificateEntry extends Object implements KeyStore.Entry
一个 KeyStore 条目包含一个受信任的 Certificate
自从:
1.5
  • 构造方法详细信息

    • TrustedCertificateEntry

      public TrustedCertificateEntry(Certificate  trustedCert)
      构造一个 TrustedCertificateEntry 和一个受信任的 Certificate
      参数:
      trustedCert - 值得信赖的 Certificate
      抛出:
      NullPointerException - 如果 trustedCertnull
    • TrustedCertificateEntry

      public TrustedCertificateEntry(Certificate  trustedCert, Set <KeyStore.Entry.Attribute > attributes)
      构造一个具有受信任的 Certificate 和相关条目属性的 TrustedCertificateEntry

      指定的 attributes 在存储到新的 TrustedCertificateEntry 对象之前被克隆。

      参数:
      trustedCert - 值得信赖的 Certificate
      attributes - 属性
      抛出:
      NullPointerException - 如果 trustedCertattributesnull
      自从:
      1.8
  • 方法详情

    • getTrustedCertificate

      public Certificate  getTrustedCertificate()
      从此条目中获取受信任的 Certificate
      返回:
      此条目中受信任的 Certificate
    • getAttributes

      public Set <KeyStore.Entry.Attribute > getAttributes()
      检索与条目关联的属性。
      指定者:
      getAttributes 在接口 KeyStore.Entry
      返回:
      不可修改的 Set 属性,可能为空
      自从:
      1.8
    • toString

      public String  toString()
      返回此 TrustedCertificateEntry 的字符串表示形式。
      重写:
      toString 在类 Object
      返回:
      此 TrustedCertificateEntry 的字符串表示形式。