org.bouncycastle.asn1.x509.sigi
Class NameOrPseudonym
java.lang.Object
|
+--org.bouncycastle.asn1.ASN1Object
|
+--org.bouncycastle.asn1.x509.sigi.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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
getInstance
public static NameOrPseudonym getInstance(java.lang.Object obj)
getPseudonym
public DirectoryString getPseudonym()
getSurname
public DirectoryString getSurname()
getGivenName
public DirectoryString[] getGivenName()
toASN1Primitive
public ASN1Primitive toASN1Primitive()
- Produce an object suitable for an ASN1OutputStream.
Returns:
NameOrPseudonym ::= CHOICE {
surAndGivenName SEQUENCE {
surName DirectoryString,
givenName SEQUENCE OF DirectoryString
},
pseudonym DirectoryString
}
- Overrides:
toASN1Primitive
in class ASN1Object
- Returns:
- a DERObject