Package org.bouncycastle.asn1.x509.sigi
Class PersonalData
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.sigi.PersonalData
- All Implemented Interfaces:
ASN1Encodable
,Encodable
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 }
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPersonalData
(NameOrPseudonym nameOrPseudonym, BigInteger nameDistinguisher, ASN1GeneralizedTime dateOfBirth, DirectoryString placeOfBirth, String gender, DirectoryString postalAddress) Constructor from a given details. -
Method Summary
Modifier and TypeMethodDescriptionstatic PersonalData
getInstance
(Object obj) Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
PersonalData
public PersonalData(NameOrPseudonym nameOrPseudonym, BigInteger nameDistinguisher, ASN1GeneralizedTime dateOfBirth, DirectoryString placeOfBirth, String gender, DirectoryString postalAddress) Constructor from a given details.- Parameters:
nameOrPseudonym
- Name or pseudonym.nameDistinguisher
- Name distinguisher.dateOfBirth
- Date of birth.placeOfBirth
- Place of birth.gender
- Gender.postalAddress
- Postal Address.
-
-
Method Details
-
getInstance
-
getNameOrPseudonym
-
getNameDistinguisher
-
getDateOfBirth
-
getPlaceOfBirth
-
getGender
-
getPostalAddress
-
toASN1Primitive
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 }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a DERObject
-