Package org.mozilla.jss.asn1
Interface ASN1Value
- All Known Implementing Classes:
AlgorithmIdentifier
,ANY
,Attribute
,Attribute
,AuthenticatedSafes
,AVA
,BIT_STRING
,BMPString
,BodyPartReference
,BOOLEAN
,CertBag
,CertId
,Certificate
,CertificateInfo
,CertificationRequest
,CertificationRequestInfo
,CertifiedKeyPair
,CertOrEncCert
,CertRepContent
,CertReqMsg
,CertRequest
,CertResponse
,CertTemplate
,CharacterString
,CHOICE
,CMCCertId
,CMCStatusInfo
,CMCStatusInfoV2
,ContentInfo
,ContentInfo
,Control
,CRLDistributionPoint
,DecryptedPOP
,DigestedData
,DigestedData
,DigestInfo
,DigestInfo
,DirectoryString
,EncapsulatedContentInfo
,Encoding
,EncryptedContentInfo
,EncryptedContentInfo
,EncryptedData
,EncryptedData
,EncryptedKey
,EncryptedPOP
,EncryptedPrivateKeyInfo
,EncryptedValue
,ENUMERATED
,EnvelopedData
,EnvelopedData
,EXPLICIT
,ExtendedFailInfo
,Extension
,GeneralizedTime
,GetCert
,GetCRL
,IA5String
,IdentityProofV2
,INTEGER
,IssuerAndSerialNumber
,IssuerAndSerialNumber
,IssuerAndSubject
,IssuingDistributionPoint
,LraPopWitness
,MacData
,Name
,NULL
,OBJECT_IDENTIFIER
,OCTET_STRING
,OtherInfo
,OtherMsg
,OtherReqMsg
,PBEParameter
,PBES2Params
,PBKDF2Params
,PendInfo
,PFX
,PKIArchiveOptions
,PKIData
,PKIPublicationInfo
,PKIStatusInfo
,PopLinkWitnessV2
,POPOPrivKey
,POPOSigningKey
,PrintableString
,PrivateKeyInfo
,ProofOfPossession
,RDN
,RecipientInfo
,RecipientInfo
,ResponseBody
,RevokeRequest
,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:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
Method Details
-
getTag
Tag getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.- Returns:
- Base tag.
-
encode
Write this value's DER encoding to an output stream using its own base tag.- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Write this value's DER encoding to an output stream using an implicit tag.- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-