public class RequestedCertificate extends ASN1Encodable implements ASN1Choice
RequestedCertificate ::= CHOICE { Certificate Certificate, publicKeyCertificate [0] EXPLICIT OCTET STRING, attributeCertificate [1] EXPLICIT OCTET STRING }
Modifier and Type | Field and Description |
---|---|
static int |
attributeCertificate |
static int |
certificate |
static int |
publicKeyCertificate |
BER, DER
Constructor and Description |
---|
RequestedCertificate(int type,
byte[] certificateOctets) |
RequestedCertificate(X509CertificateStructure certificate)
Constructor from a given details.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getCertificateBytes() |
static RequestedCertificate |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static RequestedCertificate |
getInstance(Object obj) |
int |
getType() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public static final int certificate
public static final int publicKeyCertificate
public static final int attributeCertificate
public RequestedCertificate(X509CertificateStructure certificate)
null
.certificate
- Given as Certificatepublic RequestedCertificate(int type, byte[] certificateOctets)
public static RequestedCertificate getInstance(Object obj)
public static RequestedCertificate getInstance(ASN1TaggedObject obj, boolean explicit)
public int getType()
public byte[] getCertificateBytes()
public DERObject toASN1Object()
RequestedCertificate ::= CHOICE { Certificate Certificate, publicKeyCertificate [0] EXPLICIT OCTET STRING, attributeCertificate [1] EXPLICIT OCTET STRING }
toASN1Object
in class ASN1Encodable
Copyright © 2015. All rights reserved.