Stay organized with collections
Save and categorize content based on your preferences.
CRL
abstract class CRL
This class is an abstraction of certificate revocation lists (CRLs) that have different formats but important common uses. For example, all CRLs share the functionality of listing revoked certificates, and can be queried on whether or not they list a given certificate.
Specialized CRL types can be defined by subclassing off of this abstract class.
Summary
Protected constructors |
Creates a CRL of the specified type.
|
Public methods |
String! |
Returns the type of this CRL.
|
abstract Boolean |
Checks whether the given certificate is on this CRL.
|
abstract String |
Returns a string representation of this CRL.
|
Protected constructors
CRL
protected CRL(type: String!)
Creates a CRL of the specified type.
Public methods
getType
fun getType(): String!
Returns the type of this CRL.
Return |
String! |
the type of this CRL. |
isRevoked
abstract fun isRevoked(cert: Certificate!): Boolean
Checks whether the given certificate is on this CRL.
Parameters |
cert |
Certificate!: the certificate to check for. |
Return |
Boolean |
true if the given certificate is on this CRL, false otherwise. |
toString
abstract fun toString(): String
Returns a string representation of this CRL.
Return |
String |
a string representation of this CRL. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CRL\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCRL\n===\n\n```\nabstract class CRL\n```\n\n|---|-----------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.cert.CRL](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [X509CRL](/reference/kotlin/java/security/cert/X509CRL) |---------------------------------------------------------|--------------------------| | [X509CRL](/reference/kotlin/java/security/cert/X509CRL) | Abstract class for an X. | |\n\nThis class is an abstraction of certificate revocation lists (CRLs) that have different formats but important common uses. For example, all CRLs share the functionality of listing revoked certificates, and can be queried on whether or not they list a given certificate.\n\nSpecialized CRL types can be defined by subclassing off of this abstract class.\n\nSummary\n-------\n\n| Protected constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CRL](#CRL(kotlin.String))`(`type:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates a CRL of the specified type. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getType](#getType())`()` Returns the type of this CRL. |\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isRevoked](#isRevoked(java.security.cert.Certificate))`(`cert:` `[Certificate](/reference/kotlin/java/security/cert/Certificate)!`)` Checks whether the given certificate is on this CRL. |\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` Returns a string representation of this CRL. |\n\nProtected constructors\n----------------------\n\n### CRL\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected CRL(type: String!)\n```\n\nCreates a CRL of the specified type.\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `type` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the standard name of the CRL type. See the [Java Security Standard Algorithm Names](https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html) document for information about standard CRL types. |\n\nPublic methods\n--------------\n\n### getType\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getType(): String!\n```\n\nReturns the type of this CRL.\n\n| Return ||\n|-----------------------------------------------------------------------------------|-----------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the type of this CRL. |\n\n### isRevoked\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun isRevoked(cert: Certificate!): Boolean\n```\n\nChecks whether the given certificate is on this CRL.\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------|\n| `cert` | [Certificate](/reference/kotlin/java/security/cert/Certificate)!: the certificate to check for. |\n\n| Return ||\n|------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if the given certificate is on this CRL, false otherwise. |\n\n### toString\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun toString(): String\n```\n\nReturns a string representation of this CRL.\n\n| Return ||\n|----------------------------------------------------------------------------------|--------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of this CRL. |"]]