Class TrustedAuthority

java.lang.Object
org.wildfly.security.x500.TrustedAuthority
All Implemented Interfaces:
org.wildfly.security.asn1.ASN1Encodable
Direct Known Subclasses:
TrustedAuthority.CertificateTrustedAuthority, TrustedAuthority.HashTrustedAuthority, TrustedAuthority.NameTrustedAuthority

public abstract class TrustedAuthority extends Object implements org.wildfly.security.asn1.ASN1Encodable
A representation of a trusted certificate authority.
Author:
Farah Juma
  • Field Details

  • Method Details

    • getType

      public int getType()
      Get the type of this trusted authority.
      Returns:
      the type of this trusted authority
    • getIdentifier

      public abstract Object getIdentifier()
      Get the identifier for this trusted authority.
      Returns:
      the identifier for this trusted authority
    • encodeTo

      public abstract void encodeTo(org.wildfly.security.asn1.ASN1Encoder encoder) throws org.wildfly.security.asn1.ASN1Exception

      Encode this TrustedAuth element using the given trusted authority and DER encoder, where TrustedAuth is defined as:

           TrustedAuth ::= CHOICE {
               authorityName         [0] Name,
                   -- SubjectName from CA certificate
               issuerNameHash        [1] OCTET STRING,
                   -- SHA-1 hash of Authority's DN
               issuerKeyHash         [2] OCTET STRING,
                   -- SHA-1 hash of Authority's public key
               authorityCertificate  [3] Certificate,
                   -- CA certificate
               pkcs15KeyHash         [4] OCTET STRING
                   -- PKCS #15 key hash
           }
      

      Specified by:
      encodeTo in interface org.wildfly.security.asn1.ASN1Encodable
      Parameters:
      encoder - the DER encoder (must not be null)
      Throws:
      org.wildfly.security.asn1.ASN1Exception - if any of the trusted authorities are invalid