Class GeneralName.RFC822Name

java.lang.Object
org.wildfly.security.x500.GeneralName
org.wildfly.security.x500.GeneralName.RFC822Name
All Implemented Interfaces:
ASN1Encodable
Enclosing class:
GeneralName

public static final class GeneralName.RFC822Name extends GeneralName
An RFC 822 name.
Author:
Farah Juma
  • Constructor Details

    • RFC822Name

      public RFC822Name(String name)
      Create an RFC 822 name.
      Parameters:
      name - the RFC 822 name, as a String
  • Method Details

    • getName

      public String 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)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(GeneralName.RFC822Name other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object