org.bouncycastle.asn1.x509.sigi
Class PersonalData
- DEREncodable
public class PersonalData
Contains personal data for the otherName field in the subjectAltNames
extension.
PersonalData ::= SEQUENCE {
nameOrPseudonym NameOrPseudonym,
nameDistinguisher [0] INTEGER OPTIONAL,
dateOfBirth [1] GeneralizedTime OPTIONAL,
placeOfBirth [2] DirectoryString OPTIONAL,
gender [3] PrintableString OPTIONAL,
postalAddress [4] DirectoryString OPTIONAL
}
PersonalData
public PersonalData(NameOrPseudonym nameOrPseudonym,
BigInteger nameDistinguisher,
DERGeneralizedTime dateOfBirth,
DirectoryString placeOfBirth,
String gender,
DirectoryString postalAddress)
Constructor from a given details.
nameOrPseudonym
- Name or pseudonym.nameDistinguisher
- Name distinguisher.dateOfBirth
- Date of birth.placeOfBirth
- Place of birth.gender
- Gender.postalAddress
- Postal Address.
getGender
public String getGender()
getInstance
public static PersonalData getInstance(Object obj)
getNameDistinguisher
public BigInteger getNameDistinguisher()
toASN1Object
public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
Returns:
PersonalData ::= SEQUENCE {
nameOrPseudonym NameOrPseudonym,
nameDistinguisher [0] INTEGER OPTIONAL,
dateOfBirth [1] GeneralizedTime OPTIONAL,
placeOfBirth [2] DirectoryString OPTIONAL,
gender [3] PrintableString OPTIONAL,
postalAddress [4] DirectoryString OPTIONAL
}
- toASN1Object in interface ASN1Encodable