Class DeclarationOfMajority
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.isismtt.x509.DeclarationOfMajority
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice
,org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class DeclarationOfMajority extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
dateOfBirth
static int
fullAgeAtCountry
static int
notYoungerThan
-
Constructor Summary
Constructors Constructor Description DeclarationOfMajority(boolean fullAge, java.lang.String country)
DeclarationOfMajority(int notYoungerThan)
DeclarationOfMajority(org.bouncycastle.asn1.ASN1GeneralizedTime dateOfBirth)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
notYoungerThan
public static final int notYoungerThan
- See Also:
- Constant Field Values
-
fullAgeAtCountry
public static final int fullAgeAtCountry
- See Also:
- Constant Field Values
-
dateOfBirth
public static final int dateOfBirth
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static DeclarationOfMajority getInstance(java.lang.Object obj)
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
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 }
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a DERObject
-
getType
public int getType()
-
notYoungerThan
public int notYoungerThan()
- Returns:
- notYoungerThan if that's what we are, -1 otherwise
-
fullAgeAtCountry
public org.bouncycastle.asn1.ASN1Sequence fullAgeAtCountry()
-
getDateOfBirth
public org.bouncycastle.asn1.ASN1GeneralizedTime getDateOfBirth()
-
-