summaryrefslogtreecommitdiff
path: root/bcpkix/src/main/java/org/bouncycastle/cert
diff options
context:
space:
mode:
Diffstat (limited to 'bcpkix/src/main/java/org/bouncycastle/cert')
-rw-r--r--bcpkix/src/main/java/org/bouncycastle/cert/ocsp/OCSPReqBuilder.java6
-rw-r--r--bcpkix/src/main/java/org/bouncycastle/cert/ocsp/RespID.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/OCSPReqBuilder.java b/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/OCSPReqBuilder.java
index b0cfb9ef..3f3c954a 100644
--- a/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/OCSPReqBuilder.java
+++ b/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/OCSPReqBuilder.java
@@ -75,9 +75,9 @@ public class OCSPReqBuilder
}
/**
- * Set the requestor name to the passed in X500Principal
+ * Set the requestor name to the passed in X500Name
*
- * @param requestorName a X500Principal representing the requestor name.
+ * @param requestorName an X500Name representing the requestor name.
*/
public OCSPReqBuilder setRequestorName(
X500Name requestorName)
@@ -176,7 +176,7 @@ public class OCSPReqBuilder
* Generate an unsigned request
*
* @return the OCSPReq
- * @throws org.bouncycastle.ocsp.OCSPException
+ * @throws org.bouncycastle.cert.ocsp.OCSPException
*/
public OCSPReq build()
throws OCSPException
diff --git a/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/RespID.java b/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/RespID.java
index a0fd765a..4cd19ef9 100644
--- a/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/RespID.java
+++ b/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/RespID.java
@@ -48,7 +48,7 @@ public class RespID
{
if (!digCalc.getAlgorithmIdentifier().equals(HASH_SHA1))
{
- throw new IllegalArgumentException("only SHA-1 can be used with RespID");
+ throw new IllegalArgumentException("only SHA-1 can be used with RespID - found: " + digCalc.getAlgorithmIdentifier().getAlgorithm());
}
OutputStream digOut = digCalc.getOutputStream();