Class GeneralName.X400Address

    • Field Detail

      • encodedName

        private final byte[] encodedName
    • Constructor Detail

      • X400Address

        public X400Address​(byte[] encodedName)
                    throws ASN1Exception

        Create an X400Address that is defined as:

              X400Address ::= SEQUENCE {
                                  built-in-standard-attributes        BuiltInStandardAttributes,
                                  built-in-domain-defined-attributes  BuiltInDomainDefinedAttributes OPTIONAL,
                                  -- see also teletex-domain-defined-attributes
                                  extension-attributes                ExtensionAttributes OPTIONAL    }
         

        Parameters:
        encodedName - the DER encoded form of the name, as a byte array
        Throws:
        ASN1Exception - if encodedName is not DER encoded
      • X400Address

        public X400Address​(byte[] encoded,
                           boolean valueBytesOnly)
                    throws ASN1Exception

        Create an X400Address that is defined as:

              X400Address ::= SEQUENCE {
                                  built-in-standard-attributes        BuiltInStandardAttributes,
                                  built-in-domain-defined-attributes  BuiltInDomainDefinedAttributes OPTIONAL,
                                  -- see also teletex-domain-defined-attributes
                                  extension-attributes                ExtensionAttributes OPTIONAL    }
         

        Parameters:
        encoded - the DER encoded form of the name or the value bytes from the DER encoded form of the name, as a byte array
        valueBytesOnly - whether or not encoded contains only the value bytes from the DER encoded form of the name
        Throws:
        ASN1Exception - if encoded is not DER encoded
    • Method Detail

      • getName

        public byte[] getName()
        Description copied from class: GeneralName
        Get the name.
        Specified by:
        getName in class GeneralName
        Returns:
        the name
      • encodeTo

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

        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
        Specified by:
        encodeTo in class GeneralName
        Parameters:
        encoder - the encoder (must not be null)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object