Class PSource

java.lang.Object
javax.crypto.spec.PSource
Direct Known Subclasses:
PSource.PSpecified

public class PSource
extends Object
The source of the label L as specified in PKCS #1.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  PSource.PSpecified
    The explicit specification of the parameter P used in the source algorithm.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected PSource​(String pSrcName)
    Creates a new PSource instance with the specified source algorithm identifier.
  • Method Summary

    Modifier and Type Method Description
    String getAlgorithm()
    Returns the source algorithm identifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PSource

      protected PSource​(String pSrcName)
      Creates a new PSource instance with the specified source algorithm identifier.
      Parameters:
      pSrcName - the source algorithm identifier.
      Throws:
      NullPointerException - if pSrcName is null.
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Returns the source algorithm identifier.
      Returns:
      the source algorithm identifier.