public class

DeclarationOfMajority

extends ASN1Encodable
implements ASN1Choice
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.isismtt.x509.DeclarationOfMajority

Class Overview

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.

Summary

Constants
int dateOfBirth
int fullAgeAtCountry
int notYoungerThan
[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
DeclarationOfMajority(int notYoungerThan)
DeclarationOfMajority(boolean fullAge, String country)
DeclarationOfMajority(DERGeneralizedTime dateOfBirth)
Public Methods
ASN1Sequence fullAgeAtCountry()
DERGeneralizedTime getDateOfBirth()
static DeclarationOfMajority getInstance(Object obj)
int getType()
int notYoungerThan()
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Constants

public static final int dateOfBirth

Constant Value: 2 (0x00000002)

public static final int fullAgeAtCountry

Constant Value: 1 (0x00000001)

public static final int notYoungerThan

Constant Value: 0 (0x00000000)

Public Constructors

public DeclarationOfMajority (int notYoungerThan)

public DeclarationOfMajority (boolean fullAge, String country)

public DeclarationOfMajority (DERGeneralizedTime dateOfBirth)

Public Methods

public ASN1Sequence fullAgeAtCountry ()

public DERGeneralizedTime getDateOfBirth ()

public static DeclarationOfMajority getInstance (Object obj)

public int getType ()

public int notYoungerThan ()

Returns
  • notYoungerThan if that's what we are, -1 otherwise

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
           }
 

Returns
  • a DERObject