PSource.PSpecified (Java SE 11 & JDK 11 ) (original) (raw)
- javax.crypto.spec.PSource
- javax.crypto.spec.PSource.PSpecified
Enclosing class:
PSource
public static final class PSource.PSpecified
extends PSource
This class is used to explicitly specify the value for encoding input P in OAEP Padding.
Since:
1.5
Nested Class Summary
* ### Nested classes/interfaces declared in class javax.crypto.spec.[PSource](PSource.html "class in javax.crypto.spec") `[PSource.PSpecified](PSource.PSpecified.html "class in javax.crypto.spec")`
Field Summary
Fields
Modifier and Type Field Description static PSource.PSpecified DEFAULT The encoding input P whose value equals byte[0]. Constructor Summary
Constructors
Constructor Description PSpecified(byte[] p) Constructs the source explicitly with the specified value p as the encoding input P. Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description byte[] getValue() Returns the value of encoding input P. * ### Methods declared in class javax.crypto.spec.[PSource](PSource.html "class in javax.crypto.spec") `[getAlgorithm](PSource.html#getAlgorithm%28%29)` * ### Methods declared in class java.lang.[Object](../../../java/lang/Object.html "class in java.lang") `[clone](../../../java/lang/Object.html#clone%28%29), [equals](../../../java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java/lang/Object.html#finalize%28%29), [getClass](../../../java/lang/Object.html#getClass%28%29), [hashCode](../../../java/lang/Object.html#hashCode%28%29), [notify](../../../java/lang/Object.html#notify%28%29), [notifyAll](../../../java/lang/Object.html#notifyAll%28%29), [toString](../../../java/lang/Object.html#toString%28%29), [wait](../../../java/lang/Object.html#wait%28%29), [wait](../../../java/lang/Object.html#wait%28long%29), [wait](../../../java/lang/Object.html#wait%28long,int%29)`
Field Detail
* #### DEFAULT public static final [PSource.PSpecified](PSource.PSpecified.html "class in javax.crypto.spec") DEFAULT The encoding input P whose value equals byte\[0\].
Constructor Detail
* #### PSpecified public PSpecified(byte[] p) Constructs the source explicitly with the specified value `p` as the encoding input P. Note: Parameters: `p` \- the value of the encoding input. The contents of the array are copied to protect against subsequent modification. Throws: `[NullPointerException](../../../java/lang/NullPointerException.html "class in java.lang")` \- if `p` is null.
Method Detail
* #### getValue public byte[] getValue() Returns the value of encoding input P. Returns: the value of encoding input P. A new array is returned each time this method is called.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.