Stay organized with collections
Save and categorize content based on your preferences.
PSpecified
class PSpecified : PSource
This class is used to explicitly specify the value for encoding input P in OAEP Padding.
Summary
Public constructors |
Constructs the source explicitly with the specified value p as the encoding input P.
|
Public methods |
ByteArray! |
Returns the value of encoding input P.
|
Public constructors
PSpecified
PSpecified(p: ByteArray!)
Constructs the source explicitly with the specified value p
as the encoding input P. Note:
Parameters |
p |
ByteArray!: 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
fun getValue(): ByteArray!
Returns the value of encoding input P.
Return |
ByteArray! |
the value of encoding input P. A new array is returned each time this method is called. |
Properties
DEFAULT
static val DEFAULT: PSource.PSpecified!
The encoding input P whose value equals byte[0].
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# PSource.PSpecified\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPSpecified\n==========\n\n```\nclass PSpecified : PSource\n```\n\n|---|---|-------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [javax.crypto.spec.PSource](/reference/kotlin/javax/crypto/spec/PSource) ||\n| | ↳ | [javax.crypto.spec.PSource.PSpecified](#) |\n\nThis class is used to explicitly specify the value for encoding input P in OAEP Padding.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [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. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [getValue](#getValue())`()` Returns the value of encoding input P. |\n\n| Inherited functions ||\n|---|---|\n| From class [PSource](/reference/kotlin/javax/crypto/spec/PSource) |-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getAlgorithm](/reference/kotlin/javax/crypto/spec/PSource#getAlgorithm())`()` Returns the PSource algorithm name. \u003cbr /\u003e | ||\n\n| Properties ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------|\n| static [PSource.PSpecified](#)! | [DEFAULT](#DEFAULT:javax.crypto.spec.PSource.PSpecified) The encoding input P whose value equals byte\\[0\\]. |\n\nPublic constructors\n-------------------\n\n### PSpecified\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPSpecified(p: ByteArray!)\n```\n\nConstructs the source explicitly with the specified value `p` as the encoding input P. Note:\n\n| Parameters ||\n|-----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n\n| Exceptions ||\n|----------------------------------|-----------------|\n| `java.lang.NullPointerException` | if `p` is null. |\n\nPublic methods\n--------------\n\n### getValue\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getValue(): ByteArray!\n```\n\nReturns the value of encoding input P.\n\n| Return ||\n|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [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. |\n\nProperties\n----------\n\n### DEFAULT\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DEFAULT: PSource.PSpecified!\n```\n\nThe encoding input P whose value equals byte\\[0\\]."]]