Package javax.crypto.spec
Class PSource.PSpecified
java.lang.Object
javax.crypto.spec.PSource
javax.crypto.spec.PSource.PSpecified
- Enclosing class:
- PSource
public static final class PSource.PSpecified extends PSource
The explicit specification of the parameter
P used in the
source algorithm.-
Nested Class Summary
Nested classes/interfaces inherited from class javax.crypto.spec.PSource
PSource.PSpecified -
Field Summary
Fields Modifier and Type Field Description static PSource.PSpecifiedDEFAULTThe instance ofPSpecifiedwith the default valuebyte[0]forP -
Constructor Summary
Constructors Constructor Description PSpecified(byte[] p)Creates a new instance ofPSpecifiedwith the specified parameterP. -
Method Summary
Modifier and Type Method Description byte[]getValue()Returns a copy of the value of the parameterP.Methods inherited from class javax.crypto.spec.PSource
getAlgorithm
-
Field Details
-
DEFAULT
The instance ofPSpecifiedwith the default valuebyte[0]forP
-
-
Constructor Details
-
PSpecified
public PSpecified(byte[] p)Creates a new instance ofPSpecifiedwith the specified parameterP.- Parameters:
p- the parameterP.- Throws:
NullPointerException- ifpis null.
-
-
Method Details
-
getValue
public byte[] getValue()Returns a copy of the value of the parameterP.- Returns:
- a copy of the value of the parameter
P
-