org.bouncycastle.asn1.isismtt.ocsp

Class RequestedCertificate

public class RequestedCertificate extends ASN1Encodable implements ASN1Choice

ISIS-MTT-Optional: The certificate requested by the client by inserting the RetrieveIfAllowed extension in the request, will be returned in this extension.

ISIS-MTT-SigG: The signature act allows publishing certificates only then, when the certificate owner gives his explicit permission. Accordingly, there may be o?=nondownloadableo?= certificates, about which the responder must provide status information, but MUST NOT include them in the response. Clients may get therefore the following three kind of answers on a single request including the RetrieveIfAllowed extension:

Clients requesting RetrieveIfAllowed MUST be able to handle these cases. If any of the OCTET STRING options is used, it MUST contain the DER encoding of the requested certificate.

            RequestedCertificate ::= CHOICE {
              Certificate Certificate,
              publicKeyCertificate [0] EXPLICIT OCTET STRING,
              attributeCertificate [1] EXPLICIT OCTET STRING
            }
 
Field Summary
static intattributeCertificate
static intcertificate
static intpublicKeyCertificate
Constructor Summary
RequestedCertificate(X509CertificateStructure certificate)
Constructor from a given details.
RequestedCertificate(int type, byte[] certificateOctets)
Method Summary
byte[]getCertificateBytes()
static RequestedCertificategetInstance(Object obj)
static RequestedCertificategetInstance(ASN1TaggedObject obj, boolean explicit)
intgetType()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Field Detail

attributeCertificate

public static final int attributeCertificate

certificate

public static final int certificate

publicKeyCertificate

public static final int publicKeyCertificate

Constructor Detail

RequestedCertificate

public RequestedCertificate(X509CertificateStructure certificate)
Constructor from a given details.

Only one parameter can be given. All other must be null.

Parameters: certificate Given as Certificate

RequestedCertificate

public RequestedCertificate(int type, byte[] certificateOctets)

Method Detail

getCertificateBytes

public byte[] getCertificateBytes()

getInstance

public static RequestedCertificate getInstance(Object obj)

getInstance

public static RequestedCertificate getInstance(ASN1TaggedObject obj, boolean explicit)

getType

public int getType()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Returns:

            RequestedCertificate ::= CHOICE {
              Certificate Certificate,
              publicKeyCertificate [0] EXPLICIT OCTET STRING,
              attributeCertificate [1] EXPLICIT OCTET STRING
            }
 

Returns: a DERObject