You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.asn1
Interface ASN1Value

All Known Implementing Classes:
AlgorithmIdentifier, ANY, Attribute, Attribute, AuthenticatedSafes, AVA, BIT_STRING, BMPString, BOOLEAN, CertBag, CertId, Certificate, CertificateInfo, CertificationRequest, CertificationRequestInfo, CertifiedKeyPair, 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, ENUMERATED, EnvelopedData, EnvelopedData, EXPLICIT, Extension, 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(java.io.OutputStream ostream)
          Write this value's DER encoding to an output stream using its own base tag.
 void encode(Tag implicitTag, java.io.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 Detail

getTag

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


encode

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

Throws:
java.io.IOException

encode

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

Throws:
java.io.IOException