X509CRL Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstract class for an X.
[Android.Runtime.Register("java/security/cert/X509CRL", DoNotGenerateAcw=true)]
public abstract class X509CRL : Java.Security.Cert.CRL, IDisposable, Java.Interop.IJavaPeerable, Java.Security.Cert.IX509Extension
[<Android.Runtime.Register("java/security/cert/X509CRL", DoNotGenerateAcw=true)>]
type X509CRL = class
inherit CRL
interface IX509Extension
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
Abstract class for an X.509 Certificate Revocation List (CRL). A CRL is a time-stamped list identifying revoked certificates. It is signed by a Certificate Authority (CA) and made freely available in a public repository.
Each revoked certificate is identified in a CRL by its certificate serial number. When a certificate-using system uses a certificate (e.g., for verifying a remote user's digital signature), that system not only checks the certificate signature and validity but also acquires a suitably- recent CRL and checks that the certificate serial number is not on that CRL. The meaning of "suitably-recent" may vary with local policy, but it usually means the most recently-issued CRL. A CA issues a new CRL on a regular periodic basis (e.g., hourly, daily, or weekly). Entries are added to CRLs as revocations occur, and an entry may be removed when the certificate expiration date is reached.
The X.509 v2 CRL format is described below in ASN.1:
CertificateList ::= SEQUENCE {
tbsCertList TBSCertList,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING }
More information can be found in RFC 3280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile.
The ASN.1 definition of tbsCertList
is:
TBSCertList ::= SEQUENCE {
version Version OPTIONAL,
-- if present, must be v2
signature AlgorithmIdentifier,
issuer Name,
thisUpdate ChoiceOfTime,
nextUpdate ChoiceOfTime OPTIONAL,
revokedCertificates SEQUENCE OF SEQUENCE {
userCertificate CertificateSerialNumber,
revocationDate ChoiceOfTime,
crlEntryExtensions Extensions OPTIONAL
-- if present, must be v2
} OPTIONAL,
crlExtensions [0] EXPLICIT Extensions OPTIONAL
-- if present, must be v2
}
CRLs are instantiated using a certificate factory. The following is an example of how to instantiate an X.509 CRL:
{@code
try (InputStream inStream = new FileInputStream("fileName-of-crl")) {
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509CRL crl = (X509CRL)cf.generateCRL(inStream);
}
}
Java documentation for java.security.cert.X509CRL
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
X509CRL() |
Constructor for X. |
X509CRL(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
Class |
Returns the runtime class of this |
CriticalExtensionOIDs | |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
HasUnsupportedCriticalExtension | |
IssuerDN |
Do not use , use IssuerX500Principal instead. |
IssuerX500Principal |
Returns the issuer (issuer distinguished name) value from the
CRL as an |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
NextUpdate |
Returns the |
NonCriticalExtensionOIDs | |
PeerReference | (Inherited from Object) |
RevokedCertificates |
Returns the set of revoked certificates. |
SigAlgName |
Returns the name of the signature algorithm. |
SigAlgOID |
Returns the OID of the signature algorithm. |
ThisUpdate |
Returns the |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Type |
Returns the type of this CRL. (Inherited from CRL) |
Version |
Returns the version number of this CRL. |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetEncoded() |
Returns the ASN. |
GetExtensionValue(String) |
Gets the DER-encoded OCTET string for the extension value
(<em>extnValue</em>) identified by the passed-in |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetRevokedCertificate(BigInteger) |
Gets the CRL entry, if any, with the given certificate serialNumber. |
GetRevokedCertificate(X509Certificate) |
Get the CRL entry, if any, for the given certificate. |
GetSigAlgParams() |
Gets the DER-encoded signature algorithm parameters from this CRL's signature algorithm. |
GetSignature() |
Gets the |
GetTBSCertList() |
Gets the DER-encoded CRL information, the
|
IsRevoked(Certificate) |
Checks whether the given certificate is on this CRL. (Inherited from CRL) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of this CRL. (Inherited from CRL) |
UnregisterFromRuntime() | (Inherited from Object) |
Verify(IPublicKey, Provider) |
Verifies that this CRL was signed using the private key that corresponds to the given public key. |
Verify(IPublicKey, String) |
Verifies that this CRL was signed using the private key that corresponds to the given public key. |
Verify(IPublicKey) |
Verifies that this CRL was signed using the private key that corresponds to the given public key. |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |