# CodeVerifier

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/CodeVerifier "View this page in Java")

<br />

```
@RequiresApi(value = 26)
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                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CodeVerifier](https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/CodeVerifier#CodeVerifier(kotlin.Int))`(byteLength: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)`     |
| [CodeVerifier](https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/CodeVerifier#CodeVerifier(kotlin.String))`(value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/CodeVerifier#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/CodeVerifier#hashCode())`()`                                                                                            |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [value](https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/CodeVerifier#value()) The verifier value. |

## Public constructors

### CodeVerifier

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

```
CodeVerifier(byteLength: Int = 32)
```  

### CodeVerifier

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

```
CodeVerifier(value: String)
```  

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

## Public properties

### value

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

```
val value: String
```

The verifier value.