APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.provider.certpath

pack-priv Class OCSPRequest

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.cert.Extension, java.util.Collections, .List, sun.security.util.HexDumpEncoder, sun.security.util.*, sun.security.x509.PKIXExtensions

This class can be used to generate an OCSP request and send it over an output stream. Currently we do not support signing requests. The OCSP Request is specified in RFC 2560 and the ASN.1 definition is as follows:

OCSPRequest     ::=     SEQUENCE {
     tbsRequest                  TBSRequest,
     optionalSignature   [0]     EXPLICIT Signature OPTIONAL }

  TBSRequest      ::=     SEQUENCE {
     version             [0]     EXPLICIT Version DEFAULT v1,
     requestorName       [1]     EXPLICIT GeneralName OPTIONAL,
     requestList                 SEQUENCE OF Request,
     requestExtensions   [2]     EXPLICIT Extensions OPTIONAL }

 Signature       ::=     SEQUENCE {
     signatureAlgorithm      AlgorithmIdentifier,
     signature               BIT STRING,
     certs               [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL
  }

 Version         ::=             INTEGER  {  v1(0) }

 Request         ::=     SEQUENCE {
     reqCert                     CertID,
     singleRequestExtensions     [0] EXPLICIT Extensions OPTIONAL }

 CertID          ::= SEQUENCE {
      hashAlgorithm  AlgorithmIdentifier,
      issuerNameHash OCTET STRING, -- Hash of Issuer's DN
      issuerKeyHash  OCTET STRING, -- Hash of Issuers public key
      serialNumber   CertificateSerialNumber
}

Author
Ram Marti

Field Summary

Modifier and TypeField and Description
private final List<CertId>
private static final Debug
private static final boolean
private final List<Extension>
private byte[]

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
pack-priv
OCSPRequest(List<CertId> certIds, List<Extension> extensions)

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
pack-priv List<CertId>
pack-priv byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certIdsback to summary
private final List<CertId> certIds
debugback to summary
private static final Debug debug
dumpback to summary
private static final boolean dump
extensionsback to summary
private final List<Extension> extensions
nonceback to summary
private byte[] nonce

Constructor Detail

OCSPRequestback to summary
pack-priv OCSPRequest(CertId certId)
OCSPRequestback to summary
pack-priv OCSPRequest(List<CertId> certIds)
OCSPRequestback to summary
pack-priv OCSPRequest(List<CertId> certIds, List<Extension> extensions)

Method Detail

encodeBytesback to summary
pack-priv byte[] encodeBytes() throws IOException
getCertIdsback to summary
pack-priv List<CertId> getCertIds()
getNonceback to summary
pack-priv byte[] getNonce()