| Modifier and Type | Class and Description |
|---|---|
static class |
CertReqMsg.Template
A class for decoding CertReqMsg structures from a BER encoding.
|
| Constructor and Description |
|---|
CertReqMsg(CertRequest certReq,
ProofOfPossession pop,
SEQUENCE regInfo)
Constructs a CertReqmsg from a CertRequest and, optionally,
a pop>/i> and a regInfo.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.io.OutputStream ostream)
Encodes this CertReqMsg to the given OutputStream using
DER encoding.
|
void |
encode(Tag implicit,
java.io.OutputStream ostream)
Encodes this CertReqMsg to the given OutputStream using
DER encoding, with the given implicit tag.
|
CertRequest |
getCertReq()
Retrieves the CertRequest contained in this structure.
|
ProofOfPossession |
getPop()
Returns the pop field.
|
SEQUENCE |
getRegInfo()
Returns the regInfo field.
|
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static CertReqMsg.Template |
getTemplate() |
boolean |
hasPop()
Returns
true if this CertReqMsg has a
pop field. |
boolean |
hasRegInfo()
Returns
true if this CertReqMsg has a
regInfo field. |
static void |
main(java.lang.String[] args) |
void |
verify() |
void |
verify(CryptoToken token) |
public static final Tag TAG
public CertReqMsg(CertRequest certReq, ProofOfPossession pop, SEQUENCE regInfo)
pop - May be NULL.regInfo - May be NULL.public Tag getTag()
ASN1Valuepublic CertRequest getCertReq()
public boolean hasRegInfo()
true if this CertReqMsg has a
regInfo field.public SEQUENCE getRegInfo()
public boolean hasPop()
true if this CertReqMsg has a
pop field.public ProofOfPossession getPop()
public void verify()
throws java.security.SignatureException,
InvalidKeyFormatException,
java.security.NoSuchAlgorithmException,
CryptoManager.NotInitializedException,
TokenException,
java.security.InvalidKeyException,
java.io.IOException
java.security.SignatureExceptionInvalidKeyFormatExceptionjava.security.NoSuchAlgorithmExceptionCryptoManager.NotInitializedExceptionTokenExceptionjava.security.InvalidKeyExceptionjava.io.IOExceptionpublic void verify(CryptoToken token) throws java.security.SignatureException, InvalidKeyFormatException, java.security.NoSuchAlgorithmException, CryptoManager.NotInitializedException, TokenException, java.security.InvalidKeyException, java.io.IOException
java.security.SignatureExceptionInvalidKeyFormatExceptionjava.security.NoSuchAlgorithmExceptionCryptoManager.NotInitializedExceptionTokenExceptionjava.security.InvalidKeyExceptionjava.io.IOExceptionpublic void encode(java.io.OutputStream ostream)
throws java.io.IOException
public void encode(Tag implicit, java.io.OutputStream ostream) throws java.io.IOException
public static CertReqMsg.Template getTemplate()
public static void main(java.lang.String[] args)