|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.cert.CRL
|
+--java.security.cert.X509CRL
|
+--codec.x509.X509Crl
Certificate Revocation List (CRL) according to rfc2459. It implements the following ASN1 data structure:
CertificateList ::= SEQUENCE {
tbsCertList TBSCertList,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}
TBSCertList ::= SEQUENCE {
version Version OPTIONAL,
-- if present, must be v2
signature AlgorithmIdentifier,
issuer Name,
thisUpdate Time,
nextUpdate Time OPTIONAL,
revokedCertificates SEQUENCE OF CRLEntry OPTIONAL,
crlExtensions [0] EXPLICIT Extensions OPTIONAL
-- if present, must be v2
}
Creation date: (18.08.99 15:23:09)
| Constructor Summary | |
X509Crl()
constructor that builds the ASN.1 structure |
|
X509Crl(InputStream is)
Constructor on an input stream that delivers the DER-encoded certificate revocation list. |
|
X509Crl(int i)
constructor that builds the ASN.1 structure |
|
X509Crl(Name issuer,
Calendar now)
Constructor upon Java objects. |
|
X509Crl(Name issuer,
Calendar now,
boolean _nextUpdate)
|
|
| Method Summary | |
void |
addEntry(CRLEntry e)
Adds a CRL entry. |
void |
addExtension(X509Extension ex)
Adds a global extension to the CRL structure. |
void |
checkConstraints()
for interface codec.asn1.ASN1Type |
boolean |
containsCertificate(BigInteger s)
returns true if the given certificate serial number is revoked in this CRL |
void |
decode(Decoder dec)
for interface codec.asn1.ASN1Type |
void |
encode(Encoder enc)
for interface codec.asn1.ASN1Type |
Constraint |
getConstraint()
for interface codec.asn1.ASN1Type |
Set |
getCriticalExtensionOIDs()
implementing abstract method in java.security.cert.X509CRL |
byte[] |
getEncoded()
implementing abstract method in java.security.cert.X509CRL |
Collection |
getExtensions()
returns a collection of all global extensions inside this crl |
byte[] |
getExtensionValue(String ex)
implementing abstract method in java.security.cert.X509CRL |
Principal |
getIssuerDN()
implementing abstract method in java.security.cert.X509CRL |
Date |
getNextUpdate()
implementing abstract method in java.security.cert.X509CRL |
Set |
getNonCriticalExtensionOIDs()
implementing abstract method in java.security.cert.X509CRL |
X509CRLEntry |
getRevokedCertificate(BigInteger serialNumber)
implementing abstract method in java.security.cert.X509CRL |
Set |
getRevokedCertificates()
implementing abstract method in java.security.cert.X509CRL |
String |
getSigAlgName()
implementing abstract method in java.security.cert.X509CRL |
String |
getSigAlgOID()
implementing abstract method in java.security.cert.X509CRL |
byte[] |
getSigAlgParams()
implementing abstract method in java.security.cert.X509CRL |
byte[] |
getSignature()
implementing abstract method in java.security.cert.X509CRL |
int |
getTag()
for interface codec.asn1.ASN1Type |
int |
getTagClass()
for interface codec.asn1.ASN1Type |
byte[] |
getTBSCertList()
gets the binary to-be-signed which is the input for the java Signature object for verifying For signing use getTBSCertList(AlgorithmIdentifier) |
byte[] |
getTBSCertList(AlgorithmIdentifier sigalg)
gets the binary to-be-signed which is the input for the java Signature object for signing For verifying use getTBSCertList() |
Date |
getThisUpdate()
returns the issuing date of this crl update |
Object |
getValue()
|
int |
getVersion()
returns the X.509 version (1,2) of this crl |
boolean |
hasUnsupportedCriticalExtension()
implementing abstract method in java.security.cert.X509CRL |
boolean |
isExplicit()
for interface codec.asn1.ASN1Type |
boolean |
isOptional()
for interface codec.asn1.ASN1Type |
boolean |
isRevoked(Certificate crt)
returns true if the given certificate is revoked in this crl |
boolean |
isType(int eins,
int zwei)
for interface codec.asn1.ASN1Type |
void |
setConstraint(Constraint c)
for interface codec.asn1.ASN1Type |
void |
setExplicit(boolean ex)
for interface codec.asn1.ASN1Type |
void |
setIssuerDN(Principal iss)
sets this issuer |
void |
setNextUpdate(Calendar time)
sets the date of the next update |
void |
setNextUpdate(Date time)
sets the date of the next update Note that the TimeZone will be set to GMT since Date objects do not support time zones. |
void |
setOptional(boolean opt)
for interface codec.asn1.ASN1Type |
void |
setSignature(byte[] sig)
sets the signature on this object |
void |
setSignatureAlgorithm(AlgorithmIdentifier sigalg)
sets the signature algorithm for the signature private key |
void |
setThisUpdate(Calendar time)
sets the date of this update |
void |
setThisUpdate(Date time)
sets the date of this update Note that the TimeZone will be set to GMT since Date objects do not support time zones. |
String |
toString()
Returns a human-readable string representation of this certificate revocation list |
String |
toString(String offset)
Returns a human-readable string representation of this certificate revocation list |
void |
verify(PublicKey key)
With this method, the certificate can be verified in an easy, but less secure way. |
void |
verify(PublicKey key,
String sigProvider)
with this method, the certificate can be verified in an easy, but less secure way. |
| Methods inherited from class java.security.cert.X509CRL |
equals, hashCode |
| Methods inherited from class java.security.cert.CRL |
getType |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public X509Crl()
public X509Crl(Name issuer,
Calendar now)
issuer - the issuer as a Name objectnow - time of the revocationpublic X509Crl(int i)
public X509Crl(Name issuer,
Calendar now,
boolean _nextUpdate)
public X509Crl(InputStream is)
throws ASN1Exception,
IOException
| Method Detail |
public void setConstraint(Constraint c)
codec.asn1.ASN1TypesetConstraint in interface ASN1Typecodec.asn1.ASN1Typeo - The constraint to set.public Constraint getConstraint()
codec.asn1.ASN1TypegetConstraint in interface ASN1Typecodec.asn1.ASN1Typenull.public void addEntry(CRLEntry e)
e - a CRLEntry object that represents a revocation entry in
this crlpublic void addExtension(X509Extension ex)
ex - the X509 Extension to be added to the CRL (globally)
public void checkConstraints()
throws ConstraintException
codec.asn1.ASN1TypecheckConstraints in interface ASN1Typecodec.asn1.ASN1TypeConstraint,
ConstraintCollectionpublic boolean containsCertificate(BigInteger s)
public void decode(Decoder dec)
throws ASN1Exception,
IOException
codec.asn1.ASN1Typedecode in interface ASN1Type
public void encode(Encoder enc)
throws ASN1Exception,
IOException
codec.asn1.ASN1Typeencode in interface ASN1Typepublic Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs in class X509CRL
public byte[] getEncoded()
throws CRLException
getEncoded in class X509CRLpublic Collection getExtensions()
public byte[] getExtensionValue(String ex)
getExtensionValue in class X509CRLpublic Principal getIssuerDN()
getIssuerDN in class X509CRLpublic Date getNextUpdate()
getNextUpdate in class X509CRLpublic Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs in class X509CRLpublic X509CRLEntry getRevokedCertificate(BigInteger serialNumber)
getRevokedCertificate in class X509CRLpublic Set getRevokedCertificates()
getRevokedCertificates in class X509CRLpublic String getSigAlgName()
getSigAlgName in class X509CRLpublic String getSigAlgOID()
getSigAlgOID in class X509CRLpublic byte[] getSigAlgParams()
getSigAlgParams in class X509CRLpublic byte[] getSignature()
getSignature in class X509CRLpublic int getTag()
codec.asn1.ASN1TypegetTag in interface ASN1Typepublic int getTagClass()
codec.asn1.ASN1TypegetTagClass in interface ASN1Type
public byte[] getTBSCertList()
throws CRLException
For signing use getTBSCertList(AlgorithmIdentifier)
getTBSCertList in class X509CRL
public byte[] getTBSCertList(AlgorithmIdentifier sigalg)
throws CRLException
For verifying use getTBSCertList()
public Date getThisUpdate()
getThisUpdate in class X509CRLpublic Object getValue()
getValue in interface ASN1Typepublic int getVersion()
getVersion in class X509CRLpublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension in class X509CRLpublic boolean isExplicit()
codec.asn1.ASN1TypeisExplicit in interface ASN1Typepublic boolean isOptional()
codec.asn1.ASN1TypeisOptional in interface ASN1Typepublic boolean isRevoked(Certificate crt)
isRevoked in class CRL
public boolean isType(int eins,
int zwei)
codec.asn1.ASN1TypeisType in interface ASN1Typecodec.asn1.ASN1Typetag - The tag to match.tagclass - The tag class to match.true if this type matches the given tag and tag
class.public void setExplicit(boolean ex)
codec.asn1.ASN1TypesetExplicit in interface ASN1Typepublic void setIssuerDN(Principal iss)
public void setNextUpdate(Calendar time)
public void setNextUpdate(Date time)
public void setOptional(boolean opt)
codec.asn1.ASN1TypesetOptional in interface ASN1Typepublic void setSignature(byte[] sig)
public void setSignatureAlgorithm(AlgorithmIdentifier sigalg)
public void setThisUpdate(Calendar time)
public void setThisUpdate(Date time)
public String toString()
toString in class CRLpublic String toString(String offset)
public void verify(PublicKey key)
throws CRLException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException
verify in class X509CRLkey - the issuer's public key to verify the TBS certlistNoSuchAlgorithmException - If there is no appropriate providerInvalidKeyException - If there is a problem with the public keySignatureException - If the Signature was bad.
public void verify(PublicKey key,
String sigProvider)
throws CRLException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException
verify in class X509CRLkey - the issuer's public key to verify the TBS certlistsigProvider - a preferred JCA provider to be used for verificationNoSuchAlgorithmException - If there is no appropriate providerNoSuchProviderException - If the given provider could not be foundInvalidKeyException - If there is a problem with the public keySignatureException - If the Signature was bad.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||