Class TrustedAuthority.NameTrustedAuthority

java.lang.Object
org.wildfly.security.x500.TrustedAuthority
org.wildfly.security.x500.TrustedAuthority.NameTrustedAuthority
All Implemented Interfaces:
ASN1Encodable
Enclosing class:
TrustedAuthority

public static final class TrustedAuthority.NameTrustedAuthority extends TrustedAuthority
A trusted authority that is identified by its name.
Author:
Farah Juma
  • Constructor Details

    • NameTrustedAuthority

      public NameTrustedAuthority(String name)
      Construct a new instance.
      Parameters:
      name - the distinguished name of this trusted authority, as a String
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Description copied from class: TrustedAuthority
      Get the identifier for this trusted authority.
      Specified by:
      getIdentifier in class TrustedAuthority
      Returns:
      the identifier for this trusted authority
    • encodeTo

      public void encodeTo(ASN1Encoder encoder)
      Description copied from class: TrustedAuthority

      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 ASN1Encodable
      Specified by:
      encodeTo in class TrustedAuthority
      Parameters:
      encoder - the DER encoder (must not be null)