Skip to content

Commit

Permalink
Javadocs on OCSP data types
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2mqk committed Mar 29, 2019
1 parent 38fe11e commit 9db3781
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
import org.bouncycastle.asn1.DERTaggedObject;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;

/**
* OCSP RFC 2560, RFC 6960
* <pre>
* BasicOCSPResponse ::= SEQUENCE {
* tbsResponseData ResponseData,
* signatureAlgorithm AlgorithmIdentifier,
* signature BIT STRING,
* certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
* </pre>
*/
public class BasicOCSPResponse
extends ASN1Object
{
Expand Down
11 changes: 11 additions & 0 deletions core/src/main/java/org/bouncycastle/asn1/ocsp/OCSPResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;

/**
* OCSP RFC 2560, RFC 6960
* <pre>
* OCSPResponse ::= SEQUENCE {
* responseStatus OCSPResponseStatus,
* responseBytes [0] EXPLICIT ResponseBytes OPTIONAL }
* </pre>
* @see OCSPResponseStatus
* @see ResponseBytes
*/

public class OCSPResponse
extends ASN1Object
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;


/**
* OCSP RFC 2560, RFC 6960
* <p>
* The OCSPResponseStatus enumeration.
* <pre>
* OCSPResponseStatus ::= ENUMERATED {
* successful (0), --Response has valid confirmations
* malformedRequest (1), --Illegal confirmation request
* internalError (2), --Internal error in issuer
* tryLater (3), --Try again later
* --(4) is not used
* sigRequired (5), --Must sign the request
* unauthorized (6) --Request unauthorized
* }
* </pre>
*/
public class OCSPResponseStatus
extends ASN1Object
{
Expand All @@ -19,6 +36,8 @@ public class OCSPResponseStatus
private ASN1Enumerated value;

/**
* RFC 2560, RFC 6960
* <p>
* The OCSPResponseStatus enumeration.
* <pre>
* OCSPResponseStatus ::= ENUMERATED {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;

/**
* OCSP RFC 2560, RFC 6960
* <pre>
* ResponseBytes ::= SEQUENCE {
* responseType OBJECT IDENTIFIER,
* response OCTET STRING }
* </pre>
*/
public class ResponseBytes
extends ASN1Object
{
Expand Down
11 changes: 11 additions & 0 deletions core/src/main/java/org/bouncycastle/asn1/ocsp/ResponseData.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
import org.bouncycastle.asn1.x509.Extensions;
import org.bouncycastle.asn1.x509.X509Extensions;

/**
* OCSP RFC 2560, RFC 6960
* <pre>
* ResponseData ::= SEQUENCE {
* version [0] EXPLICIT Version DEFAULT v1,
* responderID ResponderID,
* producedAt GeneralizedTime,
* responses SEQUENCE OF SingleResponse,
* responseExtensions [1] EXPLICIT Extensions OPTIONAL }
* </pre>
*/
public class ResponseData
extends ASN1Object
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.bouncycastle.util.Encodable;

/**
* OCSP RFC 2560, RFC 6960
* <pre>
* BasicOCSPResponse ::= SEQUENCE {
* tbsResponseData ResponseData,
Expand Down
11 changes: 11 additions & 0 deletions pkix/src/main/java/org/bouncycastle/cert/ocsp/RespData.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
import org.bouncycastle.asn1.ocsp.SingleResponse;
import org.bouncycastle.asn1.x509.Extensions;

/**
* OCSP RFC 2560, RFC 6960
* <pre>
* ResponseData ::= SEQUENCE {
* version [0] EXPLICIT Version DEFAULT v1,
* responderID ResponderID,
* producedAt GeneralizedTime,
* responses SEQUENCE OF SingleResponse,
* responseExtensions [1] EXPLICIT Extensions OPTIONAL }
* </pre>
*/
public class RespData
{
private ResponseData data;
Expand Down

0 comments on commit 9db3781

Please sign in to comment.