public class DeclarationOfMajority extends ASN1Object implements ASN1Choice
DeclarationOfMajoritySyntax ::= CHOICE { notYoungerThan [0] IMPLICIT INTEGER, fullAgeAtCountry [1] IMPLICIT SEQUENCE { fullAge BOOLEAN DEFAULT TRUE, country PrintableString (SIZE(2)) } dateOfBirth [2] IMPLICIT GeneralizedTime }
fullAgeAtCountry indicates the majority of the owner with respect to the laws of a specific country.
Modifier and Type | Field and Description |
---|---|
static int |
dateOfBirth |
static int |
fullAgeAtCountry |
static int |
notYoungerThan |
Constructor and Description |
---|
DeclarationOfMajority(ASN1GeneralizedTime dateOfBirth) |
DeclarationOfMajority(boolean fullAge,
java.lang.String country) |
DeclarationOfMajority(int notYoungerThan) |
Modifier and Type | Method and Description |
---|---|
ASN1Sequence |
fullAgeAtCountry() |
ASN1GeneralizedTime |
getDateOfBirth() |
static DeclarationOfMajority |
getInstance(java.lang.Object obj) |
int |
getType() |
int |
notYoungerThan() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public static final int notYoungerThan
public static final int fullAgeAtCountry
public static final int dateOfBirth
public DeclarationOfMajority(int notYoungerThan)
public DeclarationOfMajority(boolean fullAge, java.lang.String country)
public DeclarationOfMajority(ASN1GeneralizedTime dateOfBirth)
public static DeclarationOfMajority getInstance(java.lang.Object obj)
public ASN1Primitive toASN1Primitive()
Returns:
DeclarationOfMajoritySyntax ::= CHOICE { notYoungerThan [0] IMPLICIT INTEGER, fullAgeAtCountry [1] IMPLICIT SEQUENCE { fullAge BOOLEAN DEFAULT TRUE, country PrintableString (SIZE(2)) } dateOfBirth [2] IMPLICIT GeneralizedTime }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
public int getType()
public int notYoungerThan()
public ASN1Sequence fullAgeAtCountry()
public ASN1GeneralizedTime getDateOfBirth()