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 already existing CRL.
|
|
CRLBag(X509CRL crl,
java.lang.String friendlyName,
byte[] localKeyID)
Creates a new CRLBag from an already 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)
Deprecated.
use
getCRLs() instead |
X509CRL |
getCRL()
Returns the certificate of this CRLBag.
|
static X509CRL[] |
getCRLs(CRLBag[] crlBags)
This method can be used to convert a CRLBag array to a CRL array.
|
ASN1Object |
toASN1Object()
Returns this CRLBag as ASN1Object.
|
java.lang.String |
toString()
Returns a String representation of this CRLBag.
|
create, encodeSafeContents, encodeSafeContentsAsASN1Object, getBagType, parseSafeContents, parseSafeContents, register
getAttributes, getFriendlyName, getLocalKeyID, setAttributes, setFriendlyName, setLocalKeyID
protected X509CRL crl
protected ASN1Object crl_type
protected CRLBag()
public CRLBag(X509CRL crl)
crl
- the CRLpublic CRLBag(X509CRL crl, java.lang.String friendlyName, byte[] localKeyID)
crl
- the CRLfriendlyName
- the friendly namelocalKeyID
- the local key idpublic static X509CRL[] getCertificates(CRLBag[] crlBags)
getCRLs()
insteadcrlBags
- The CRLs as PKCS12 CRL bags.public static X509CRL[] getCRLs(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