Class NameOrPseudonym

  • All Implemented Interfaces:
    ASN1Choice, ASN1Encodable, Encodable

    public class NameOrPseudonym
    extends ASN1Object
    implements ASN1Choice
    Structure for a name or pseudonym.
           NameOrPseudonym ::= CHOICE {
                surAndGivenName SEQUENCE {
                  surName DirectoryString,
                  givenName SEQUENCE OF DirectoryString 
             },
                pseudonym DirectoryString 
           }
     
    See Also:
    PersonalData
    • Constructor Detail

      • NameOrPseudonym

        public NameOrPseudonym​(DirectoryString pseudonym)
        Constructor from DirectoryString.

        The sequence is of type NameOrPseudonym:

               NameOrPseudonym ::= CHOICE {
                    surAndGivenName SEQUENCE {
                      surName DirectoryString,
                      givenName SEQUENCE OF DirectoryString
                 },
                    pseudonym DirectoryString
               }
         
        Parameters:
        pseudonym - pseudonym value to use.
      • NameOrPseudonym

        public NameOrPseudonym​(java.lang.String pseudonym)
        Constructor from a given details.
        Parameters:
        pseudonym - The pseudonym.
      • NameOrPseudonym

        public NameOrPseudonym​(DirectoryString surname,
                               ASN1Sequence givenName)
        Constructor from a given details.
        Parameters:
        surname - The surname.
        givenName - A sequence of directory strings making up the givenName