# CodeVerifier

Artifact: [androidx.wear:wear-phone-interactions](https://developer.android.com/jetpack/androidx/releases/wear) [View Source](https://cs.android.com/search?q=file:androidx/wear/phone/interactions/authentication/CodeVerifier.kt+class:androidx.wear.phone.interactions.authentication.CodeVerifier) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

*** ** * ** ***


```
@RequiresApi(value = 26)
public final class CodeVerifier
```

<br />

*** ** * ** ***

Authorisation code verifier.

Related specifications: [Proof Key for Code Exchange by OAuth Public Clients (RFC 7636).](https://tools.ietf.org/html/rfc7636)

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier#CodeVerifier(kotlin.Int)(int byteLength)` |
| `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier#CodeVerifier(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier#getValue()()` The verifier value. |
| `int` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier#hashCode()()` |

## Public constructors

### CodeVerifier

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

```
public CodeVerifier(int byteLength)
```

### CodeVerifier

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

```
public CodeVerifier(@NonNull String value)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getValue

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

```
public final @NonNull String getValue()
```

The verifier value.

### hashCode

```
public int hashCode()
```