# PSource.PSpecified

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

# PSpecified

```
class PSpecified : PSource
```

|---|---|------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                  |||
| ↳ | [javax.crypto.spec.PSource](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource)                           ||
|   | ↳ | [javax.crypto.spec.PSource.PSpecified](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource.PSpecified#) |

This class is used to explicitly specify the value for encoding input P in OAEP Padding.

## Summary

|                                                                                                                                                    Public constructors                                                                                                                                                    ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [PSpecified](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource.PSpecified#PSpecified(kotlin.ByteArray))`(`p:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!`)` Constructs the source explicitly with the specified value`p`as the encoding input P. |

|                                                                                                                 Public methods                                                                                                                  ||
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [getValue](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource.PSpecified#getValue())`()` Returns the value of encoding input P. |

| Inherited functions ||
|---|---|
| From class[PSource](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource) |-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getAlgorithm](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource#getAlgorithm())`()` <br /> Returns the PSource algorithm name. <br /> | ||

|                                                                                                                                                    Properties                                                                                                                                                     ||
|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[PSource.PSpecified](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource.PSpecified#)! | [DEFAULT](https://developer.android.com/reference/kotlin/javax/crypto/spec/PSource.PSpecified#DEFAULT:javax.crypto.spec.PSource.PSpecified) The encoding input P whose value equals byte\[0\]. |

## Public constructors

### PSpecified

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

```
PSpecified(p: ByteArray!)
```

Constructs the source explicitly with the specified value`p`as the encoding input P. Note:

|                                                                                                   Parameters                                                                                                    ||
|-----|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `p` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!:the value of the encoding input. The contents of the array are copied to protect against subsequent modification. |

|                   Exceptions                    ||
|----------------------------------|---------------|
| `java.lang.NullPointerException` | if`p`is null. |

## Public methods

### getValue

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

```
fun getValue(): ByteArray!
```

Returns the value of encoding input P.

|                                                                                      Return                                                                                       ||
|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | the value of encoding input P. A new array is returned each time this method is called. |

## Properties

### DEFAULT

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

```
static val DEFAULT: PSource.PSpecified!
```

The encoding input P whose value equals byte\[0\].