public class CRLBag extends SafeBag
SafeBag,
Attributes| Modifier and Type | Field and Description |
|---|---|
protected X509CRL |
crl
The CRL.
|
protected ASN1Object |
crl_type
The type of the CRL (X.509 per default)
|
| Modifier | Constructor and Description |
|---|---|
protected |
CRLBag()
Default constructor.
|
|
CRLBag(X509CRL crl)
Creates a new CRLBag from an alreay existing CRL.
|
|
CRLBag(X509CRL crl,
java.lang.String friendlyName,
byte[] localKeyID)
Creates a new CRLBag from an alreay existing CRL, a friendlyName and a
locakKeyID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes the CRLBag given as ASN1Object.
|
static X509CRL[] |
getCertificates(CRLBag[] crlBags)
This method can be used to convert a CRLBag array to a CRL array.
|
X509CRL |
getCRL()
Returns the certificate of this CRLBag.
|
ASN1Object |
toASN1Object()
Returns this CRLBag as ASN1Object.
|
java.lang.String |
toString()
Returns a String representation of this CRLBag.
|
create, encodeSafeContents, encodeSafeContentsAsASN1Object, getBagType, parseSafeContents, parseSafeContents, registergetAttributes, getFriendlyName, getLocalKeyID, setAttributes, setFriendlyName, setLocalKeyIDprotected X509CRL crl
protected ASN1Object crl_type
protected CRLBag()
public CRLBag(X509CRL crl)
public CRLBag(X509CRL crl, java.lang.String friendlyName, byte[] localKeyID)
public static X509CRL[] getCertificates(CRLBag[] crlBags)
crlBags - The CRLs as PKCS12 CRL bags.public X509CRL getCRL()
public void decode(ASN1Object obj) throws CodingException
obj - the CRLBag as ASN1ObjectCodingException - if the CRLBag cannot be decodedpublic ASN1Object toASN1Object() throws CodingException
CodingException - if an de/encoding error occurs