# CodeChallenge

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/CodeChallenge.kt+class:androidx.wear.phone.interactions.authentication.CodeChallenge) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

*** ** * ** ***


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

<br />

*** ** * ** ***

Authorization code challenge.

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/CodeChallenge#CodeChallenge(androidx.wear.phone.interactions.authentication.CodeVerifier)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier codeVerifier)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeChallenge#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/CodeChallenge#getValue()()` The challenge value. |
| `int` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeChallenge#hashCode()()` |

## Public constructors

### CodeChallenge

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

```
public CodeChallenge(@NonNull CodeVerifier codeVerifier)
```

## 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 challenge value.

### hashCode

```
public int hashCode()
```