org.mozilla.jss.pkix.crmf

Class CertReqMsg.Template

Enclosing Class:
CertReqMsg
Implemented Interfaces:
ASN1Template

public static class CertReqMsg.Template
extends java.lang.Object
implements ASN1Template

A class for decoding CertReqMsg structures from a BER encoding.

Method Summary

ASN1Value
decode(InputStream istream)
Decodes a CertReqMsg from the given input stream.
ASN1Value
decode(Tag implicit, InputStream istream)
Decodes a CertReqMsg from the given input stream, using the given implicit tag.
boolean
tagMatch(Tag t)

Method Details

decode

public ASN1Value decode(InputStream istream)
            throws IOException,
                   InvalidBERException
Decodes a CertReqMsg from the given input stream.
Specified by:
decode in interface ASN1Template
Returns:
A new CertReqMsg. The return value may be cast to a CertReqMsg.
Throws:
InvalidBERException - If the data on the input stream is not a valid BER encoding of a CertReqMsg.

decode

public ASN1Value decode(Tag implicit,
                        InputStream istream)
            throws IOException,
                   InvalidBERException
Decodes a CertReqMsg from the given input stream, using the given implicit tag.
Specified by:
decode in interface ASN1Template
Parameters:
implicit - The implicit tag for this item. This must be supplied if the CertReqMsg appears in a context where it is implicitly tagged.
Returns:
A new CertReqMsg. The return value may be cast to a CertReqMsg.
Throws:
InvalidBERException - If the data on the input stream is not a valid BER encoding of a CertReqMsg.

tagMatch

public boolean tagMatch(Tag t)
Specified by:
tagMatch in interface ASN1Template