Stay organized with collections
Save and categorize content based on your preferences.
URICertStoreParameters
class URICertStoreParameters : CertStoreParameters
Parameters used as input for CertStore
algorithms which use information contained in a URI to retrieve certificates and CRLs.
This class is used to provide necessary configuration parameters through a URI as defined in RFC 5280 to implementations of CertStore
algorithms.
Concurrent Access
Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
Summary
Public constructors |
Creates an instance of URICertStoreParameters with the specified URI.
|
Public methods |
URICertStoreParameters |
Returns a copy of this object.
|
Boolean |
Compares the specified object with this parameters object for equality.
|
URI! |
Returns the URI used to construct this URICertStoreParameters object.
|
Int |
Returns a hash code value for this parameters object.
|
String |
Returns a formatted string describing the parameters including the URI used to construct this object.
|
Public constructors
URICertStoreParameters
URICertStoreParameters(uri: URI!)
Creates an instance of URICertStoreParameters
with the specified URI.
Parameters |
uri |
URI!: the URI which contains configuration information. |
Exceptions |
java.lang.NullPointerException |
if uri is null |
Public methods
clone
fun clone(): URICertStoreParameters
Returns a copy of this object. Changes to the copy will not affect the original and vice versa.
Exceptions |
java.lang.CloneNotSupportedException |
if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned. |
equals
fun equals(other: Any?): Boolean
Compares the specified object with this parameters object for equality. Two URICertStoreParameters are considered equal if the URIs used to construct them are equal.
Parameters |
obj |
the reference object with which to compare. |
p |
the object to test for equality with this parameters. |
Return |
Boolean |
true if the specified object is equal to this parameters object. |
getURI
fun getURI(): URI!
Returns the URI used to construct this URICertStoreParameters
object.
hashCode
fun hashCode(): Int
Returns a hash code value for this parameters object. The hash code is generated using the URI supplied at construction.
Return |
Int |
a hash code value for this parameters. |
toString
fun toString(): String
Returns a formatted string describing the parameters including the URI used to construct this object.
Return |
String |
a formatted string describing the parameters |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# URICertStoreParameters\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nURICertStoreParameters\n======================\n\n```\nclass URICertStoreParameters : CertStoreParameters\n```\n\n|---|------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.cert.URICertStoreParameters](#) |\n\nParameters used as input for `CertStore` algorithms which use information contained in a URI to retrieve certificates and CRLs.\n\nThis class is used to provide necessary configuration parameters through a URI as defined in RFC 5280 to implementations of `CertStore` algorithms.\n\n**Concurrent Access**\n\nUnless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [URICertStoreParameters](#URICertStoreParameters(java.net.URI))`(`uri:` `[URI](../../net/URI.html#)!`)` Creates an instance of `URICertStoreParameters` with the specified URI. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [URICertStoreParameters](#) | [clone](#clone())`()` Returns a copy of this object. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Compares the specified object with this parameters object for equality. |\n| [URI](../../net/URI.html#)! | [getURI](#getURI())`()` Returns the URI used to construct this `URICertStoreParameters` object. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` Returns a hash code value for this parameters object. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` Returns a formatted string describing the parameters including the URI used to construct this object. |\n\nPublic constructors\n-------------------\n\n### URICertStoreParameters\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nURICertStoreParameters(uri: URI!)\n```\n\nCreates an instance of `URICertStoreParameters` with the specified URI.\n\n| Parameters ||\n|-------|--------------------------------------------------------------------------------|\n| `uri` | [URI](../../net/URI.html#)!: the URI which contains configuration information. |\n\n| Exceptions ||\n|----------------------------------|------------------|\n| `java.lang.NullPointerException` | if `uri` is null |\n\nPublic methods\n--------------\n\n### clone\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun clone(): URICertStoreParameters\n```\n\nReturns a copy of this object. Changes to the copy will not affect the original and vice versa.\n\n| Return ||\n|-----------------------------|----------|\n| [URICertStoreParameters](#) | the copy |\n\n| Exceptions ||\n|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `java.lang.CloneNotSupportedException` | if the object's class does not support the `Cloneable` interface. Subclasses that override the `clone` method can also throw this exception to indicate that an instance cannot be cloned. |\n\n### equals\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun equals(other: Any?): Boolean\n```\n\nCompares the specified object with this parameters object for equality. Two URICertStoreParameters are considered equal if the URIs used to construct them are equal.\n\n| Parameters ||\n|-------|-------------------------------------------------------|\n| `obj` | the reference object with which to compare. |\n| `p` | the object to test for equality with this parameters. |\n\n| Return ||\n|------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if the specified object is equal to this parameters object. |\n\n### getURI\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getURI(): URI!\n```\n\nReturns the URI used to construct this `URICertStoreParameters` object.\n\n| Return ||\n|-----------------------------|----------|\n| [URI](../../net/URI.html#)! | the URI. |\n\n### hashCode\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hashCode(): Int\n```\n\nReturns a hash code value for this parameters object. The hash code is generated using the URI supplied at construction.\n\n| Return ||\n|----------------------------------------------------------------------------|----------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this parameters. |\n\n### toString\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun toString(): String\n```\n\nReturns a formatted string describing the parameters including the URI used to construct this object.\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a formatted string describing the parameters |"]]