|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.ocsp.OCSPReqGenerator
public class OCSPReqGenerator
Constructor Summary | |
---|---|
OCSPReqGenerator()
|
Method Summary | |
---|---|
void |
addRequest(CertificateID certId)
Add a request for the given CertificateID. |
void |
addRequest(CertificateID certId,
X509Extensions singleRequestExtensions)
Add a request with extensions |
OCSPReq |
generate()
Generate an unsigned request |
OCSPReq |
generate(java.lang.String signingAlgorithm,
java.security.PrivateKey key,
java.security.cert.X509Certificate[] chain,
java.lang.String provider)
|
OCSPReq |
generate(java.lang.String signingAlgorithm,
java.security.PrivateKey key,
java.security.cert.X509Certificate[] chain,
java.lang.String provider,
java.security.SecureRandom random)
|
java.util.Iterator |
getSignatureAlgNames()
Return an iterator of the signature names supported by the generator. |
void |
setRequestExtensions(X509Extensions requestExtensions)
|
void |
setRequestorName(GeneralName requestorName)
|
void |
setRequestorName(javax.security.auth.x500.X500Principal requestorName)
Set the requestor name to the passed in X500Principal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OCSPReqGenerator()
Method Detail |
---|
public void addRequest(CertificateID certId)
certId
- certificate ID of interestpublic void addRequest(CertificateID certId, X509Extensions singleRequestExtensions)
certId
- certificate ID of interestsingleRequestExtensions
- the extensions to attach to the requestpublic void setRequestorName(javax.security.auth.x500.X500Principal requestorName)
requestorName
- a X500Principal representing the requestor name.public void setRequestorName(GeneralName requestorName)
public void setRequestExtensions(X509Extensions requestExtensions)
public OCSPReq generate() throws OCSPException
OCSPException
public OCSPReq generate(java.lang.String signingAlgorithm, java.security.PrivateKey key, java.security.cert.X509Certificate[] chain, java.lang.String provider) throws OCSPException, java.security.NoSuchProviderException, java.lang.IllegalArgumentException
OCSPException
java.security.NoSuchProviderException
java.lang.IllegalArgumentException
public OCSPReq generate(java.lang.String signingAlgorithm, java.security.PrivateKey key, java.security.cert.X509Certificate[] chain, java.lang.String provider, java.security.SecureRandom random) throws OCSPException, java.security.NoSuchProviderException, java.lang.IllegalArgumentException
OCSPException
java.security.NoSuchProviderException
java.lang.IllegalArgumentException
public java.util.Iterator getSignatureAlgNames()
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |