Methods Summary |
---|
public boolean | equals(java.lang.Object other)Returns whether the specified object equals to this instance.
if (other == this) {
return true;
}
if (!(other instanceof X509CRL)) {
return false;
}
X509CRL obj = (X509CRL) other;
try {
return Arrays.equals(getEncoded(), obj.getEncoded());
} catch (CRLException e) {
return false;
}
|
public abstract byte[] | getEncoded()Returns this CRL in ASN.1 DER encoded form.
|
public abstract java.security.Principal | getIssuerDN()Do not use, use {@link #getIssuerX500Principal()} instead. Returns
the issuer as an implementation specific Principal object.
|
public javax.security.auth.x500.X500Principal | getIssuerX500Principal()Returns the issuer distinguished name of this CRL.
try {
// TODO if there is no X.509 certificate provider installed
// should we try to access Harmony X509CRLImpl via classForName?
CertificateFactory factory = CertificateFactory
.getInstance("X.509"); //$NON-NLS-1$
X509CRL crl = (X509CRL) factory
.generateCRL(new ByteArrayInputStream(getEncoded()));
return crl.getIssuerX500Principal();
} catch (Exception e) {
throw new RuntimeException(Messages.getString("security.59"), e); //$NON-NLS-1$
}
|
public abstract java.util.Date | getNextUpdate()Returns the {@code nextUpdate} value of this CRL.
|
public abstract java.security.cert.X509CRLEntry | getRevokedCertificate(java.math.BigInteger serialNumber)Returns the CRL entry with the specified certificate serial number.
|
public java.security.cert.X509CRLEntry | getRevokedCertificate(java.security.cert.X509Certificate certificate)Returns the CRL entry for the specified certificate.
if (certificate == null) {
throw new NullPointerException();
}
return getRevokedCertificate(certificate.getSerialNumber());
|
public abstract java.util.Set | getRevokedCertificates()Returns the set of revoked certificates.
|
public abstract java.lang.String | getSigAlgName()Returns the name of the signature algorithm.
|
public abstract java.lang.String | getSigAlgOID()Returns the OID of the signature algorithm.
|
public abstract byte[] | getSigAlgParams()Returns the parameters of the signature algorithm in DER encoded form.
|
public abstract byte[] | getSignature()Returns the signature bytes of this CRL.
|
public abstract byte[] | getTBSCertList()Returns the {@code tbsCertList} information of this CRL in DER encoded
form.
|
public abstract java.util.Date | getThisUpdate()Returns the {@code thisUpdate} value of this CRL.
|
public abstract int | getVersion()Returns the version number of this CRL.
|
public int | hashCode()Returns the hashcode of this CRL instance.
try {
int res = 0;
byte[] array = getEncoded();
for (int i=0; i<array.length; i++) {
res += array[i] & 0xFF;
}
return res;
} catch (CRLException e) {
return 0;
}
|
public abstract void | verify(java.security.PublicKey key)Verifies this CRL by verifying that this CRL was signed with the
corresponding private key to the specified public key.
|
public abstract void | verify(java.security.PublicKey key, java.lang.String sigProvider)Verifies this CRL by verifying that this CRL was signed with the
corresponding private key to the specified public key. The signature
verification engine of the specified provider will be used.
|