Top Description Fields Constructors Methods
org.bouncycastle.asn1.isismtt.x509

public Class DeclarationOfMajority

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Boolean, .ASN1Choice, .ASN1EncodableVector, .ASN1GeneralizedTime, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERTags, .DERPrintableString, .DERSequence, .DERTaggedObject

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

Modifier and TypeField and Description
public static final int
private ASN1TaggedObject
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
public
DeclarationOfMajority(int notYoungerThan)

public
DeclarationOfMajority(boolean fullAge, String country)

public
private

Method Summary

Modifier and TypeMethod and Description
public ASN1Sequence
public ASN1GeneralizedTime
public static DeclarationOfMajority
public int
public int

Returns:

notYoungerThan if that's what we are, -1 otherwise
notYoungerThan
()

public ASN1Primitive

Returns:

a DERObject
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

dateOfBirthback to summary
public static final int dateOfBirth
declarationback to summary
private ASN1TaggedObject declaration
fullAgeAtCountryback to summary
public static final int fullAgeAtCountry
notYoungerThanback to summary
public static final int notYoungerThan

Constructor Detail

DeclarationOfMajorityback to summary
public DeclarationOfMajority(int notYoungerThan)
DeclarationOfMajorityback to summary
public DeclarationOfMajority(boolean fullAge, String country)
DeclarationOfMajorityback to summary
public DeclarationOfMajority(ASN1GeneralizedTime dateOfBirth)
DeclarationOfMajorityback to summary
private DeclarationOfMajority(ASN1TaggedObject o)

Method Detail

fullAgeAtCountryback to summary
public ASN1Sequence fullAgeAtCountry()
getDateOfBirthback to summary
public ASN1GeneralizedTime getDateOfBirth()
getInstanceback to summary
public static DeclarationOfMajority getInstance(Object obj)
getTypeback to summary
public int getType()
notYoungerThanback to summary
public int notYoungerThan()
Returns:int

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

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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
          }
Returns:ASN1Primitive

a DERObject