|
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.cmp.ProtectedPKIMessage
public class ProtectedPKIMessage
Wrapper for a PKIMessage with protection attached to it.
| Constructor Summary | |
|---|---|
ProtectedPKIMessage(GeneralPKIMessage pkiMessage)
Base constructor. |
|
| Method Summary | |
|---|---|
org.bouncycastle.asn1.cmp.PKIBody |
getBody()
Return the message body. |
X509CertificateHolder[] |
getCertificates()
Return the extra certificates associated with this message. |
org.bouncycastle.asn1.cmp.PKIHeader |
getHeader()
Return the message header. |
boolean |
hasPasswordBasedMacProtection()
Determine whether the message is protected by a password based MAC. |
org.bouncycastle.asn1.cmp.PKIMessage |
toASN1Structure()
Return the underlying ASN.1 structure contained in this object. |
boolean |
verify(org.bouncycastle.operator.ContentVerifierProvider verifierProvider)
Verify a message with a public key based signature attached. |
boolean |
verify(PKMACBuilder pkMacBuilder,
char[] password)
Verify a message with password based MAC protection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtectedPKIMessage(GeneralPKIMessage pkiMessage)
pkiMessage - a GeneralPKIMessage with| Method Detail |
|---|
public org.bouncycastle.asn1.cmp.PKIHeader getHeader()
public org.bouncycastle.asn1.cmp.PKIBody getBody()
public org.bouncycastle.asn1.cmp.PKIMessage toASN1Structure()
public boolean hasPasswordBasedMacProtection()
public X509CertificateHolder[] getCertificates()
public boolean verify(org.bouncycastle.operator.ContentVerifierProvider verifierProvider)
throws CMPException
verifierProvider - a provider of signature verifiers.
CMPException - if an exception is thrown trying to verify the signature.
public boolean verify(PKMACBuilder pkMacBuilder,
char[] password)
throws CMPException
pkMacBuilder - MAC builder that can be used to construct the appropriate MacCalculatorpassword - the MAC password
CMPException - if algorithm not MAC based, or an exception is thrown verifying the MAC.
|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||