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
,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:
ASN1Template
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.- Returns:
- Base tag.
-
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.- Parameters:
ostream
- Output stream.- Throws:
java.io.IOException
- If an error occurred.
-
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.- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
java.io.IOException
- If an error occurred.
-
-