Class DeclarationOfMajority
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.isismtt.x509.DeclarationOfMajority
- All Implemented Interfaces:
ASN1Choice,ASN1Encodable,Encodable
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDeclarationOfMajority(boolean fullAge, String country) DeclarationOfMajority(int notYoungerThan) DeclarationOfMajority(ASN1GeneralizedTime dateOfBirth) -
Method Summary
Modifier and TypeMethodDescriptionstatic DeclarationOfMajoritygetInstance(Object obj) intgetType()intProduce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
notYoungerThan
public static final int notYoungerThan- See Also:
-
fullAgeAtCountry
public static final int fullAgeAtCountry- See Also:
-
dateOfBirth
public static final int dateOfBirth- See Also:
-
-
Constructor Details
-
DeclarationOfMajority
public DeclarationOfMajority(int notYoungerThan) -
DeclarationOfMajority
-
DeclarationOfMajority
-
-
Method Details
-
getInstance
-
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:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a DERObject
-
getType
public int getType() -
notYoungerThan
public int notYoungerThan()- Returns:
- notYoungerThan if that's what we are, -1 otherwise
-
fullAgeAtCountry
-
getDateOfBirth
-