Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.asn1
Interface ASN1Choice

All Known Implementing Classes:
  AttCertIssuer, AttrOrOID, BodyPartReference, CertEtcToken, CertOrEncCert, CertStatus, CMCStatusInfo.OtherInfo, CMPCertificate, CRLSource, Data, DeclarationOfMajority, DirectoryString, DisplayText, DistributionPointName, DVCSResponse, DVCSTime, EncryptedKey, Evidence, GeneralName, Iso4217CurrencyCode, KeyAgreeRecipientIdentifier, NameOrPseudonym, ObjectStoreIntegrityCheck, OriginatorIdentifierOrKey, OtherHash, OtherStatusInfo, PKIArchiveOptions, PKIBody, POPOPrivKey, ProofOfPossession, RecipientIdentifier, RecipientInfo, RequestedCertificate, ResponderID, SignerIdentifier, TaggedRequest, Target, Time, Time, TypeOfBiometricData, X500Name, X962Parameters

public interface ASN1Choice

Marker interface for CHOICE objects - if you implement this in a role your own object any attempt to tag the object implicitly will convert the tag to an explicit one as the encoding rules require.

If you use this interface your class should also implement the getInstance() pattern which takes a tag object and the tagging mode used.

X.690

8: Basic encoding rules

8.13 Encoding of a choice value

The encoding of a choice value shall be the same as the encoding of a value of the chosen type. NOTE 1 — The encoding may be primitive or constructed depending on the chosen type. NOTE 2 — The tag used in the identifier octets is the tag of the chosen type, as specified in the ASN.1 definition of the choice type.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD