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.
Modifier and Type | Field and Description |
---|---|
static int |
dateOfBirth |
static int |
fullAgeAtCountry |
static int |
notYoungerThan |
BER, DER
Constructor and Description |
---|
DeclarationOfMajority(boolean fullAge,
String country) |
DeclarationOfMajority(DERGeneralizedTime dateOfBirth) |
DeclarationOfMajority(int notYoungerThan) |
Modifier and Type | Method and Description |
---|---|
ASN1Sequence |
fullAgeAtCountry() |
DERGeneralizedTime |
getDateOfBirth() |
static DeclarationOfMajority |
getInstance(Object obj) |
int |
getType() |
int |
notYoungerThan() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public static final int notYoungerThan
public static final int fullAgeAtCountry
public static final int dateOfBirth
public DeclarationOfMajority(int notYoungerThan)
public DeclarationOfMajority(boolean fullAge, String country)
public DeclarationOfMajority(DERGeneralizedTime dateOfBirth)
public static DeclarationOfMajority getInstance(Object obj)
public DERObject toASN1Object()
DeclarationOfMajoritySyntax ::= CHOICE { notYoungerThan [0] IMPLICIT INTEGER, fullAgeAtCountry [1] IMPLICIT SEQUENCE { fullAge BOOLEAN DEFAULT TRUE, country PrintableString (SIZE(2)) } dateOfBirth [2] IMPLICIT GeneralizedTime }
toASN1Object
in class ASN1Encodable
public int getType()
public int notYoungerThan()
public ASN1Sequence fullAgeAtCountry()
public DERGeneralizedTime getDateOfBirth()
Copyright © 2015. All rights reserved.