Package org.conscrypt
Class OpenSSLX509CRLEntry
- java.lang.Object
-
- java.security.cert.X509CRLEntry
-
- org.conscrypt.OpenSSLX509CRLEntry
-
- All Implemented Interfaces:
X509Extension
public class OpenSSLX509CRLEntry extends X509CRLEntry
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getCriticalExtensionOIDs()Returns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.byte[]getEncoded()Returns this entry in ASN.1 DER encoded form.byte[]getExtensionValue(String oid)Returns the extension value as DER-encoded OCTET string for the specified OID.Set<String>getNonCriticalExtensionOIDs()Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.DategetRevocationDate()Returns the date when the certificate is revoked.BigIntegergetSerialNumber()Returns the serial number of the revoked certificate.booleanhasExtensions()Returns whether this CRL entry has extensions.booleanhasUnsupportedCriticalExtension()Returns whether this instance has an extension marked as CRITICAL that it cannot support.StringtoString()Returns a string representation of this instance.-
Methods inherited from class java.security.cert.X509CRLEntry
equals, getCertificateIssuer, getRevocationReason, hashCode
-
-
-
-
Method Detail
-
getCriticalExtensionOIDs
public Set<String> getCriticalExtensionOIDs()
Description copied from interface:X509ExtensionReturns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.- Returns:
- the set of extension OIDs marked as CRITIAL, an empty set if none
are marked as CRITICAL, or
nullif no extensions are present.
-
getExtensionValue
public byte[] getExtensionValue(String oid)
Description copied from interface:X509ExtensionReturns the extension value as DER-encoded OCTET string for the specified OID.- Parameters:
oid- the object identifier to get the extension value for.- Returns:
- the extension value as DER-encoded OCTET string, or
nullif no extension for the specified OID can be found.
-
getNonCriticalExtensionOIDs
public Set<String> getNonCriticalExtensionOIDs()
Description copied from interface:X509ExtensionReturns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.- Returns:
- the set of extension OIDs marked as NON-CRITIAL, an empty set if
none are marked as NON-.CRITICAL, or
nullif no extensions are present.
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Description copied from interface:X509ExtensionReturns whether this instance has an extension marked as CRITICAL that it cannot support.- Returns:
trueif an unsupported CRITICAL extension is present,falseotherwise.
-
getEncoded
public byte[] getEncoded() throws CRLExceptionDescription copied from class:X509CRLEntryReturns this entry in ASN.1 DER encoded form.- Specified by:
getEncodedin classX509CRLEntry- Returns:
- the encoded form of this entry.
- Throws:
CRLException- if encoding fails.
-
getSerialNumber
public BigInteger getSerialNumber()
Description copied from class:X509CRLEntryReturns the serial number of the revoked certificate.- Specified by:
getSerialNumberin classX509CRLEntry- Returns:
- the serial number of the revoked certificate.
-
getRevocationDate
public Date getRevocationDate()
Description copied from class:X509CRLEntryReturns the date when the certificate is revoked.- Specified by:
getRevocationDatein classX509CRLEntry- Returns:
- the date when the certificate is revoked.
-
hasExtensions
public boolean hasExtensions()
Description copied from class:X509CRLEntryReturns whether this CRL entry has extensions.- Specified by:
hasExtensionsin classX509CRLEntry- Returns:
trueis this CRL entry has extensions, otherwisefalse.
-
toString
public String toString()
Description copied from class:X509CRLEntryReturns a string representation of this instance.- Specified by:
toStringin classX509CRLEntry- Returns:
- a string representation of this instance.
-
-