org.mozilla.jss.asn1

Interface ASN1Value

Known Implementing Classes:
AlgorithmIdentifier, ANY, Attribute, Attribute, AuthenticatedSafes, AVA, BIT_STRING, BMPString, BOOLEAN, CertBag, Certificate, CertificateInfo, CertificationRequest, CertificationRequestInfo, CertifiedKeyPair, CertId, CertOrEncCert, CertRepContent, CertReqMsg, CertRequest, CertResponse, CertTemplate, CharacterString, CHOICE, CMCCertId, CMCStatusInfo, ContentInfo, ContentInfo, Control, DigestedData, DigestedData, DigestInfo, DigestInfo, DirectoryString, EncapsulatedContentInfo, Encoding, EncryptedContentInfo, EncryptedContentInfo, EncryptedData, EncryptedData, EncryptedKey, EncryptedPrivateKeyInfo, EncryptedValue, EnvelopedData, EnvelopedData, ENUMERATED, Extension, EXPLICIT, GeneralizedTime, GetCert, GetCRL, IA5String, INTEGER, IssuerAndSerialNumber, IssuerAndSerialNumber, IssuerAndSubject, LraPopWitness, MacData, Name, NULL, OBJECT_IDENTIFIER, OCTET_STRING, OtherInfo, OtherMsg, PBEParameter, PendInfo, PFX, PKIArchiveOptions, PKIData, PKIPublicationInfo, PKIStatusInfo, POPOPrivKey, POPOSigningKey, PrintableString, PrivateKeyInfo, ProofOfPossession, RDN, RecipientInfo, RecipientInfo, ResponseBody, RevRepContent, RevRequest, SafeBag, SecretBag, SEQUENCE, SET, SignedAndEnvelopedData, SignedAndEnvelopedData, SignedData, SignedData, SignerIdentifier, SignerInfo, SignerInfo, SubjectKeyIdentifier, SubjectPublicKeyInfo, TaggedAttribute, TaggedCertificationRequest, TaggedContentInfo, TaggedRequest, TeletexString, TimeBase, UniversalString, UTCTime, UTF8String

public interface ASN1Value

A value that can be decoded from BER and encoded to DER.
See Also:
ASN1Template

Method Summary

void
encode(OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.
void
encode(Tag implicitTag, OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.
Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Write this value's DER encoding to an output stream using its own base tag.

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Write this value's DER encoding to an output stream using an implicit tag.

getTag

public Tag getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.