Interface Algorithm

All Superinterfaces:
Serializable
All Known Subinterfaces:
DigestAlgorithm
All Known Implementing Classes:
FipsAlgorithm, FipsDigestAlgorithm, GeneralAlgorithm, GeneralDigestAlgorithm

public interface Algorithm extends Serializable
Base interface for an algorithm descriptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Object equals method.
    Return a string representation of the algorithm.
    int
    Object hashCode method.
    boolean
    Returns true if this algorithm requires additional parameter fields, false otherwise.
  • Method Details

    • getName

      String getName()
      Return a string representation of the algorithm.
      Returns:
      the algorithm name.
    • requiresAlgorithmParameters

      boolean requiresAlgorithmParameters()
      Returns true if this algorithm requires additional parameter fields, false otherwise.
      Returns:
      true if algorithm requires parameters.
    • equals

      boolean equals(Object o)
      Object equals method.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to be checked for equality.
      Returns:
      true if o is equal to this, false otherwise.
    • hashCode

      int hashCode()
      Object hashCode method.
      Overrides:
      hashCode in class Object
      Returns:
      calculated hash code for this object.