org.bouncycastle.asn1.isismtt.x509
Class DeclarationOfMajority
- ASN1Choice, DEREncodable
public class DeclarationOfMajority
A declaration of majority.
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.
dateOfBirth
public static final int dateOfBirth
fullAgeAtCountry
public static final int fullAgeAtCountry
notYoungerThan
public static final int notYoungerThan
DeclarationOfMajority
public DeclarationOfMajority(boolean fullAge,
String country)
DeclarationOfMajority
public DeclarationOfMajority(int notYoungerThan)
getType
public int getType()
notYoungerThan
public int notYoungerThan()
- notYoungerThan if that's what we are, -1 otherwise
toASN1Object
public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
Returns:
DeclarationOfMajoritySyntax ::= CHOICE
{
notYoungerThan [0] IMPLICIT INTEGER,
fullAgeAtCountry [1] IMPLICIT SEQUENCE
{
fullAge BOOLEAN DEFAULT TRUE,
country PrintableString (SIZE(2))
}
dateOfBirth [2] IMPLICIT GeneralizedTime
}
- toASN1Object in interface ASN1Encodable