|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.cert.crmf.CertificateRequestMessage
public class CertificateRequestMessage
Carrier for a CRMF CertReqMsg.
| Field Summary | |
|---|---|
static int |
popKeyAgreement
|
static int |
popKeyEncipherment
|
static int |
popRaVerified
|
static int |
popSigningKey
|
| Constructor Summary | |
|---|---|
CertificateRequestMessage(byte[] certReqMsg)
Create a CertificateRequestMessage from the passed in bytes. |
|
CertificateRequestMessage(org.bouncycastle.asn1.crmf.CertReqMsg certReqMsg)
|
|
| Method Summary | |
|---|---|
org.bouncycastle.asn1.crmf.CertTemplate |
getCertTemplate()
Return the certificate template contained in this message. |
Control |
getControl(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
Return a control value of the specified type. |
byte[] |
getEncoded()
Return the ASN.1 encoding of the certReqMsg we wrap. |
int |
getProofOfPossessionType()
Return the type of the proof-of-possession this request message provides. |
boolean |
hasControl(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
Return whether or not this request has a specific type of control value. |
boolean |
hasControls()
Return whether or not this request has control values associated with it. |
boolean |
hasProofOfPossession()
Return whether or not this request message has a proof-of-possession field in it. |
boolean |
hasSigningKeyProofOfPossessionWithPKMAC()
Return whether or not the proof-of-possession (POP) is of the type popSigningKey and it has a public key MAC associated with it. |
boolean |
isValidSigningKeyPOP(org.bouncycastle.operator.ContentVerifierProvider verifierProvider)
Return whether or not a signing key proof-of-possession (POP) is valid. |
boolean |
isValidSigningKeyPOP(org.bouncycastle.operator.ContentVerifierProvider verifierProvider,
PKMACBuilder macBuilder,
char[] password)
Return whether or not a signing key proof-of-possession (POP), with an associated PKMAC, is valid. |
org.bouncycastle.asn1.crmf.CertReqMsg |
toASN1Structure()
Return the underlying ASN.1 object defining this CertificateRequestMessage object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int popRaVerified
public static final int popSigningKey
public static final int popKeyEncipherment
public static final int popKeyAgreement
| Constructor Detail |
|---|
public CertificateRequestMessage(byte[] certReqMsg)
throws java.io.IOException
certReqMsg - BER/DER encoding of the CertReqMsg structure.
java.io.IOException - in the event of corrupted data, or an incorrect structure.public CertificateRequestMessage(org.bouncycastle.asn1.crmf.CertReqMsg certReqMsg)
| Method Detail |
|---|
public org.bouncycastle.asn1.crmf.CertReqMsg toASN1Structure()
public org.bouncycastle.asn1.crmf.CertTemplate getCertTemplate()
public boolean hasControls()
public boolean hasControl(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
type - the type OID for the control value we are checking for.
public Control getControl(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
type - the type OID for the control value we are checking for.
public boolean hasProofOfPossession()
public int getProofOfPossessionType()
public boolean hasSigningKeyProofOfPossessionWithPKMAC()
public boolean isValidSigningKeyPOP(org.bouncycastle.operator.ContentVerifierProvider verifierProvider)
throws CRMFException,
java.lang.IllegalStateException
verifierProvider - a provider that can produce content verifiers for the signature contained in this POP.
CRMFException - if there is a problem in verification or content verifier creation.
java.lang.IllegalStateException - if POP not appropriate.
public boolean isValidSigningKeyPOP(org.bouncycastle.operator.ContentVerifierProvider verifierProvider,
PKMACBuilder macBuilder,
char[] password)
throws CRMFException,
java.lang.IllegalStateException
verifierProvider - a provider that can produce content verifiers for the signature contained in this POP.macBuilder - a suitable PKMACBuilder to create the MAC verifier.password - the password used to key the MAC calculation.
CRMFException - if there is a problem in verification or content verifier creation.
java.lang.IllegalStateException - if POP not appropriate.
public byte[] getEncoded()
throws java.io.IOException
java.io.IOException - if there is an exception creating the encoding.
|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||