Stay organized with collections
Save and categorize content based on your preferences.
BasicReason
class BasicReason : CertPathValidatorException.Reason
The BasicReason enumerates the potential reasons that a certification path of any type may be invalid.
Summary
Enum values |
The public key or the signature algorithm has been constrained.
|
The certificate is expired.
|
The signature is invalid.
|
The certificate is not yet valid.
|
The certificate is revoked.
|
The revocation status of the certificate could not be determined.
|
Unspecified reason.
|
Enum values
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,["# CertPathValidatorException.BasicReason\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBasicReason\n===========\n\n```\nclass BasicReason : CertPathValidatorException.Reason\n```\n\n|---|---|----------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[java.security.cert.CertPathValidatorException.BasicReason](#)\\\u003e ||\n| | ↳ | [java.security.cert.CertPathValidatorException.BasicReason](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [CertPathValidatorException.BasicReason.ALGORITHM_CONSTRAINED](#ENUM_VALUE:ALGORITHM_CONSTRAINED), [CertPathValidatorException.BasicReason.EXPIRED](#ENUM_VALUE:EXPIRED), [CertPathValidatorException.BasicReason.INVALID_SIGNATURE](#ENUM_VALUE:INVALID_SIGNATURE), [CertPathValidatorException.BasicReason.NOT_YET_VALID](#ENUM_VALUE:NOT_YET_VALID), [CertPathValidatorException.BasicReason.REVOKED](#ENUM_VALUE:REVOKED), [CertPathValidatorException.BasicReason.UNDETERMINED_REVOCATION_STATUS](#ENUM_VALUE:UNDETERMINED_REVOCATION_STATUS), [CertPathValidatorException.BasicReason.UNSPECIFIED](#ENUM_VALUE:UNSPECIFIED) |---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------| | [CertPathValidatorException.BasicReason.ALGORITHM_CONSTRAINED](#ENUM_VALUE:ALGORITHM_CONSTRAINED) | The public key or the signature algorithm has been constrained. | | [CertPathValidatorException.BasicReason.EXPIRED](#ENUM_VALUE:EXPIRED) | The certificate is expired. | | [CertPathValidatorException.BasicReason.INVALID_SIGNATURE](#ENUM_VALUE:INVALID_SIGNATURE) | The signature is invalid. | | [CertPathValidatorException.BasicReason.NOT_YET_VALID](#ENUM_VALUE:NOT_YET_VALID) | The certificate is not yet valid. | | [CertPathValidatorException.BasicReason.REVOKED](#ENUM_VALUE:REVOKED) | The certificate is revoked. | | [CertPathValidatorException.BasicReason.UNDETERMINED_REVOCATION_STATUS](#ENUM_VALUE:UNDETERMINED_REVOCATION_STATUS) | The revocation status of the certificate could not be determined. | | [CertPathValidatorException.BasicReason.UNSPECIFIED](#ENUM_VALUE:UNSPECIFIED) | Unspecified reason. | |\n\nThe BasicReason enumerates the potential reasons that a certification path of any type may be invalid.\n\nSummary\n-------\n\n| Enum values ||\n|------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ALGORITHM_CONSTRAINED](#ENUM_VALUE:ALGORITHM_CONSTRAINED) The public key or the signature algorithm has been constrained. |\n| [EXPIRED](#ENUM_VALUE:EXPIRED) The certificate is expired. |\n| [INVALID_SIGNATURE](#ENUM_VALUE:INVALID_SIGNATURE) The signature is invalid. |\n| [NOT_YET_VALID](#ENUM_VALUE:NOT_YET_VALID) The certificate is not yet valid. |\n| [REVOKED](#ENUM_VALUE:REVOKED) The certificate is revoked. |\n| [UNDETERMINED_REVOCATION_STATUS](#ENUM_VALUE:UNDETERMINED_REVOCATION_STATUS) The revocation status of the certificate could not be determined. |\n| [UNSPECIFIED](#ENUM_VALUE:UNSPECIFIED) Unspecified reason. |\n\nEnum values\n-----------\n\n### ALGORITHM_CONSTRAINED\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ALGORITHM_CONSTRAINED : CertPathValidatorException.BasicReason\n```\n\nThe public key or the signature algorithm has been constrained. \n\n### EXPIRED\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val EXPIRED : CertPathValidatorException.BasicReason\n```\n\nThe certificate is expired. \n\n### INVALID_SIGNATURE\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val INVALID_SIGNATURE : CertPathValidatorException.BasicReason\n```\n\nThe signature is invalid. \n\n### NOT_YET_VALID\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NOT_YET_VALID : CertPathValidatorException.BasicReason\n```\n\nThe certificate is not yet valid. \n\n### REVOKED\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val REVOKED : CertPathValidatorException.BasicReason\n```\n\nThe certificate is revoked. \n\n### UNDETERMINED_REVOCATION_STATUS\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNDETERMINED_REVOCATION_STATUS : CertPathValidatorException.BasicReason\n```\n\nThe revocation status of the certificate could not be determined. \n\n### UNSPECIFIED\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNSPECIFIED : CertPathValidatorException.BasicReason\n```\n\nUnspecified reason."]]