kz.gamma.hardware.asn1.ocsp
Class OCSPRequest

java.lang.Object
  extended by kz.gamma.hardware.asn1.ASN1Encodable
      extended by kz.gamma.hardware.asn1.ocsp.OCSPRequest
All Implemented Interfaces:
DEREncodable

public class OCSPRequest
extends ASN1Encodable


Field Summary
(package private)  Signature optionalSignature
           
(package private)  TBSRequest tbsRequest
           
 
Fields inherited from class kz.gamma.hardware.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
OCSPRequest(ASN1Sequence seq)
           
OCSPRequest(byte[] req)
          Create a OCSPRequest from the past in byte array.
OCSPRequest(java.io.InputStream in)
          Create a OCSPRequest from the past in input stream.
OCSPRequest(TBSRequest tbsRequest, Signature optionalSignature)
           
 
Method Summary
static OCSPRequest getInstance(ASN1TaggedObject obj, boolean explicit)
           
static OCSPRequest getInstance(java.lang.Object obj)
           
 Signature getOptionalSignature()
           
 TBSRequest getTbsRequest()
           
 DERObject toASN1Object()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class kz.gamma.hardware.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tbsRequest

TBSRequest tbsRequest

optionalSignature

Signature optionalSignature
Constructor Detail

OCSPRequest

public OCSPRequest(TBSRequest tbsRequest,
                   Signature optionalSignature)

OCSPRequest

public OCSPRequest(byte[] req)
            throws java.io.IOException
Create a OCSPRequest from the past in byte array.

Parameters:
req - byte array containing the request.
Throws:
java.io.IOException - if the request is malformed.

OCSPRequest

public OCSPRequest(java.io.InputStream in)
            throws java.io.IOException
Create a OCSPRequest from the past in input stream.

Parameters:
in - input stream containing the request.
Throws:
java.io.IOException - if the request is malformed.

OCSPRequest

public OCSPRequest(ASN1Sequence seq)
Method Detail

getInstance

public static OCSPRequest getInstance(ASN1TaggedObject obj,
                                      boolean explicit)

getInstance

public static OCSPRequest getInstance(java.lang.Object obj)

getTbsRequest

public TBSRequest getTbsRequest()

getOptionalSignature

public Signature getOptionalSignature()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 OCSPRequest     ::=     SEQUENCE {
     tbsRequest                  TBSRequest,
     optionalSignature   [0]     EXPLICIT Signature OPTIONAL }
 

Specified by:
toASN1Object in class ASN1Encodable
Returns:


Copyright © 2013 Gamma Technologies. All Rights Reserved.