Class GeneralName

java.lang.Object
org.wildfly.security.x500.GeneralName
All Implemented Interfaces:
ASN1Encodable
Direct Known Subclasses:
GeneralName.DirectoryName, GeneralName.DNSName, GeneralName.EDIPartyName, GeneralName.IPAddress, GeneralName.OtherName, GeneralName.RegisteredID, GeneralName.RFC822Name, GeneralName.URIName, GeneralName.X400Address

public abstract class GeneralName extends Object implements ASN1Encodable
A representation of an X.509 general name.
Author:
Farah Juma
  • Field Details

  • Method Details

    • getType

      public int getType()
      Get the type of this general name.
      Returns:
      the type of this general name
    • getName

      public abstract Object getName()
      Get the name.
      Returns:
      the name
    • encodeTo

      public abstract void encodeTo(ASN1Encoder encoder)

      Encode this GeneralName element using the given ASN.1 encoder, where GeneralName is defined as:

            GeneralName ::= CHOICE {
                otherName                       [0]     OtherName,
                rfc822Name                      [1]     IA5String,
                dNSName                         [2]     IA5String,
                x400Address                     [3]     ORAddress,
                directoryName                   [4]     Name,
                ediPartyName                    [5]     EDIPartyName,
                uniformResourceIdentifier       [6]     IA5String,
                iPAddress                       [7]     OCTET STRING,
                registeredID                    [8]     OBJECT IDENTIFIER
            }
       

      Specified by:
      encodeTo in interface ASN1Encodable
      Parameters:
      encoder - the encoder (must not be null)
      Throws:
      ASN1Exception - if the general name is invalid