Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/java/security/cert/URICertStoreParameters#pubctors) \| [Methods](https://developer.android.com/reference/java/security/cert/URICertStoreParameters#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/security/cert/URICertStoreParameters#inhmethods)

# URICertStoreParameters

` public final class URICertStoreParameters `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/java/security/cert/CertStoreParameters `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.security.cert.URICertStoreParameters |

<br />

*** ** * ** ***

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.
**See also:**

- `https://developer.android.com/reference/java/security/cert/CertStore`
- `https://developer.android.com/reference/java/net/URI`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters#URICertStoreParameters(java.net.URI)(https://developer.android.com/reference/java/net/URI uri) ` Creates an instance of `URICertStoreParameters` with the specified URI. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters` | ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters#clone()() ` Returns a copy of this object. |
| ` boolean` | ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object p) ` Compares the specified object with this parameters object for equality. |
| ` https://developer.android.com/reference/java/net/URI` | ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters#getURI()() ` Returns the URI used to construct this `URICertStoreParameters` object. |
| ` int` | ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters#hashCode()() ` Returns a hash code value for this parameters object. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/cert/URICertStoreParameters#toString()() ` Returns a formatted string describing the parameters including the URI used to construct this object. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/java/security/cert/CertStoreParameters ` ` abstract https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/security/cert/CertStoreParameters#clone()() `

Makes a copy of this `CertStoreParameters`.

## Public constructors

### URICertStoreParameters

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public URICertStoreParameters (URI uri)
```

Creates an instance of `URICertStoreParameters` with the specified URI.

<br />

| Parameters ||
|---|---|
| `uri` | `URI`: the URI which contains configuration information. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/NullPointerException` | if `uri` is null |

## Public methods

### clone

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public URICertStoreParameters clone ()
```

Returns a copy of this object. Changes to the copy will not affect the original and vice versa.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/security/cert/URICertStoreParameters` | the copy <br /> |

### equals

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean equals (Object p)
```

Compares the specified object with this parameters object for equality. Two URICertStoreParameters are considered equal if the URIs used to construct them are equal.

<br />

| Parameters ||
|---|---|
| `p` | `Object`: the object to test for equality with this parameters. <br /> |

| Returns ||
|---|---|
| `boolean` | true if the specified object is equal to this parameters object. <br /> |

### getURI

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public URI getURI ()
```

Returns the URI used to construct this `URICertStoreParameters` object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/net/URI` | the URI. <br /> |

### hashCode

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

Returns a hash code value for this parameters object. The hash code is generated using the URI supplied at construction.

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this parameters. <br /> |

### toString

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a formatted string describing the parameters including the URI used to construct this object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a formatted string describing the parameters <br /> |