public class DeclarationOfMajority
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.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(org.bouncycastle.asn1.ASN1GeneralizedTime dateOfBirth) |
DeclarationOfMajority(boolean fullAge,
java.lang.String country) |
DeclarationOfMajority(int notYoungerThan) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.ASN1Sequence |
fullAgeAtCountry() |
org.bouncycastle.asn1.ASN1GeneralizedTime |
getDateOfBirth() |
static DeclarationOfMajority |
getInstance(java.lang.Object obj) |
int |
getType() |
int |
notYoungerThan() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
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(org.bouncycastle.asn1.ASN1GeneralizedTime dateOfBirth)
public static DeclarationOfMajority getInstance(java.lang.Object obj)
public org.bouncycastle.asn1.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 org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
public int getType()
public int notYoungerThan()
public org.bouncycastle.asn1.ASN1Sequence fullAgeAtCountry()
public org.bouncycastle.asn1.ASN1GeneralizedTime getDateOfBirth()