ASN1Choice
, ASN1Encodable
, Encodable
public class RequestedCertificate extends ASN1Object implements ASN1Choice
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:
RequestedCertificate ::= CHOICE { Certificate Certificate, publicKeyCertificate [0] EXPLICIT OCTET STRING, attributeCertificate [1] EXPLICIT OCTET STRING }
Modifier and Type | Field | Description |
---|---|---|
static int |
attributeCertificate |
|
static int |
certificate |
|
static int |
publicKeyCertificate |
Constructor | Description |
---|---|
RequestedCertificate(int type,
byte[] certificateOctets) |
|
RequestedCertificate(Certificate certificate) |
Constructor from a given details.
|
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getCertificateBytes() |
|
static RequestedCertificate |
getInstance(java.lang.Object obj) |
|
static RequestedCertificate |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
|
int |
getType() |
|
ASN1Primitive |
toASN1Primitive() |
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public static final int certificate
public static final int publicKeyCertificate
public static final int attributeCertificate
public RequestedCertificate(Certificate certificate)
Only one parameter can be given. All other must be null
.
certificate
- Given as Certificatepublic RequestedCertificate(int type, byte[] certificateOctets)
public static RequestedCertificate getInstance(java.lang.Object obj)
public static RequestedCertificate getInstance(ASN1TaggedObject obj, boolean explicit)
public int getType()
public byte[] getCertificateBytes()
public ASN1Primitive toASN1Primitive()
Returns:
RequestedCertificate ::= CHOICE { Certificate Certificate, publicKeyCertificate [0] EXPLICIT OCTET STRING, attributeCertificate [1] EXPLICIT OCTET STRING }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object