Top Description Fields Constructors Methods
org.bouncycastle.asn1.isismtt.ocsp

public Class RequestedCertificate

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Choice, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERTaggedObject, org.bouncycastle.asn1.x509.Certificate, org.bouncycastle.util.Arrays

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 �nondownloadable� 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

Modifier and TypeField and Description
private byte[]
public static final int
private Certificate
public static final int
private byte[]
public static final int

Constructor Summary

AccessConstructor and Description
private
public
RequestedCertificate(Certificate
Given as Certificate
certificate
)

Constructor from a given details.

public
RequestedCertificate(int type, byte[] certificateOctets)

Method Summary

Modifier and TypeMethod and Description
public byte[]
public static RequestedCertificate
public static RequestedCertificate
getInstance(ASN1TaggedObject obj, boolean explicit)

public int
public ASN1Primitive

Returns:

a DERObject
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

attributeCertback to summary
private byte[] attributeCert
attributeCertificateback to summary
public static final int attributeCertificate
certback to summary
private Certificate cert
certificateback to summary
public static final int certificate
publicKeyCertback to summary
private byte[] publicKeyCert
publicKeyCertificateback to summary
public static final int publicKeyCertificate

Constructor Detail

RequestedCertificateback to summary
private RequestedCertificate(ASN1TaggedObject tagged)
RequestedCertificateback to summary
public RequestedCertificate(Certificate certificate)

Constructor from a given details.

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

Parameters
certificate:Certificate

Given as Certificate

RequestedCertificateback to summary
public RequestedCertificate(int type, byte[] certificateOctets)

Method Detail

getCertificateBytesback to summary
public byte[] getCertificateBytes()
getInstanceback to summary
public static RequestedCertificate getInstance(Object obj)
getInstanceback to summary
public static RequestedCertificate getInstance(ASN1TaggedObject obj, boolean explicit)
getTypeback to summary
public int getType()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:

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

a DERObject