org.bouncycastle.asn1.isismtt.x509
public class DeclarationOfMajority extends ASN1Encodable 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.
Field Summary | |
---|---|
static int | dateOfBirth |
static int | fullAgeAtCountry |
static int | notYoungerThan |
Constructor Summary | |
---|---|
DeclarationOfMajority(int notYoungerThan) | |
DeclarationOfMajority(boolean fullAge, String country) | |
DeclarationOfMajority(DERGeneralizedTime dateOfBirth) |
Method Summary | |
---|---|
ASN1Sequence | fullAgeAtCountry() |
DERGeneralizedTime | getDateOfBirth() |
static DeclarationOfMajority | getInstance(Object obj) |
int | getType() |
int | notYoungerThan() |
DERObject | toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
Returns: notYoungerThan if that's what we are, -1 otherwise
DeclarationOfMajoritySyntax ::= CHOICE { notYoungerThan [0] IMPLICIT INTEGER, fullAgeAtCountry [1] IMPLICIT SEQUENCE { fullAge BOOLEAN DEFAULT TRUE, country PrintableString (SIZE(2)) } dateOfBirth [2] IMPLICIT GeneralizedTime }
Returns: a DERObject