Package org.mozilla.jss.asn1
Interface ASN1Template
- All Known Implementing Classes:
AlgorithmIdentifier.Template
,ANY.Template
,Attribute.Template
,Attribute.Template
,AuthenticatedSafes.Template
,AVA.Template
,BIT_STRING.Template
,BMPString.Template
,BodyPartReference.Template
,BOOLEAN.Template
,CertBag.Template
,CertId.Template
,Certificate.Template
,CertificateInfo.Template
,CertificationRequest.Template
,CertificationRequestInfo.Template
,CertReqMsg.Template
,CertRequest.Template
,CertTemplate.Template
,CharacterString.Template
,CHOICE.Template
,CMCCertId.Template
,CMCStatusInfo.Template
,CMCStatusInfoV2.Template
,ContentInfo.Template
,ContentInfo.Template
,Control.Template
,CRLDistributionPoint.Template
,DecryptedPOP.Template
,DigestedData.Template
,DigestedData.Template
,DigestInfo.Template
,DigestInfo.Template
,DirectoryString.Template
,EncapsulatedContentInfo.Template
,Encoding.Template
,EncryptedContentInfo.Template
,EncryptedContentInfo.Template
,EncryptedData.Template
,EncryptedData.Template
,EncryptedKey.Template
,EncryptedPOP.Template
,EncryptedPrivateKeyInfo.Template
,EncryptedValue.Template
,ENUMERATED.Template
,EnvelopedData.Template
,EnvelopedData.Template
,EXPLICIT.Template
,ExtendedFailInfo.Template
,Extension.Template
,GeneralizedTime.Template
,GetCert.Template
,GetCRL.Template
,IA5String.Template
,IdentityProofV2.Template
,INTEGER.Template
,IssuerAndSerialNumber.Template
,IssuerAndSerialNumber.Template
,IssuerAndSubject.Template
,LraPopWitness.Template
,MacData.Template
,Name.Template
,NULL.Template
,OBJECT_IDENTIFIER.Template
,OCTET_STRING.Template
,OtherInfo.Template
,OtherMsg.Template
,OtherReqMsg.Template
,PBEParameter.Template
,PBES2Params.Template
,PBKDF2Params.Template
,PendInfo.Template
,PFX.Template
,PKIArchiveOptions.Template
,PKIData.Template
,PKIPublicationInfo.Template
,PKIStatusInfo.Template
,PopLinkWitnessV2.Template
,POPOPrivKey.Template
,POPOSigningKey.Template
,PrintableString.Template
,PrivateKeyInfo.Template
,ProofOfPossession.Template
,RDN.Template
,RecipientInfo.Template
,RecipientInfo.Template
,ResponseBody.Template
,RevokeRequest.Template
,RevRepContent.Template
,RevRequest.Template
,SafeBag.Template
,SecretBag.Template
,SEQUENCE.OF_Template
,SEQUENCE.Template
,SET.OF_Template
,SET.Template
,SignedAndEnvelopedData.Template
,SignedAndEnvelopedData.Template
,SignedData.Template
,SignedData.Template
,SignerIdentifier.Template
,SignerInfo.Template
,SignerInfo.Template
,SubjectKeyIdentifier.Template
,SubjectPublicKeyInfo.Template
,TaggedAttribute.Template
,TaggedCertificationRequest.Template
,TaggedContentInfo.Template
,TaggedRequest.Template
,TeletexString.Template
,UniversalString.Template
,UTCTime.Template
,UTF8String.Template
public interface ASN1Template
An interface for decoding ASN1Values from their BER encodings.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(InputStream istream) Decodes an ASN1Value from the InputStream without an implicit tag.decode
(Tag implicitTag, InputStream istream) Decodes an ASN1Value from the InputStream with the given implicit tag.boolean
Determines whether the given tag will satisfy this template.
-
Method Details
-
tagMatch
Determines whether the given tag will satisfy this template.- Parameters:
tag
- Tag.- Returns:
- True if the given tag will satisfy this template.
-
decode
Decodes an ASN1Value from the InputStream without an implicit tag.- Parameters:
istream
- Must support marking (markSupported() == true). For example, ByteArrayInputStream and BufferedInputStream support marking, but FileInputStream does not. If your source does not support marking, you can wrap it in a BufferedInputStream.- Returns:
- ASN.1 value.
- Throws:
InvalidBERException
- If there is an invalid BER encoding.IOException
- If other error occurred.
-
decode
Decodes an ASN1Value from the InputStream with the given implicit tag.- Parameters:
implicitTag
- Implicit tag.istream
- Must support marking (markSupported() == true). For example, ByteArrayInputStream and BufferedInputStream support marking, but FileInputStream does not. If your source does not support marking, you can wrap it in a BufferedInputStream.- Returns:
- ASN.1 value.
- Throws:
InvalidBERException
- If there is an invalid BER encoding.IOException
- If other error occurred.
-