Class GeneralName

    • Constructor Detail

      • GeneralName

        GeneralName​(int type)
    • Method Detail

      • 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