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.
  • Field Details

    • DEFAULT

      public static final PSource.PSpecified DEFAULT
      The instance of PSpecified with the default value byte[0] for P
  • Constructor Details

    • PSpecified

      public PSpecified​(byte[] p)
      Creates a new instance of PSpecified with the specified parameter P.
      Parameters:
      p - the parameter P.
      Throws:
      NullPointerException - if p is null.
  • Method Details

    • getValue

      public byte[] getValue()
      Returns a copy of the value of the parameter P.
      Returns:
      a copy of the value of the parameter P