Class FipsAlgorithm

  • All Implemented Interfaces:
    java.io.Serializable, Algorithm
    Direct Known Subclasses:
    FipsDigestAlgorithm

    public class FipsAlgorithm
    extends java.lang.Object
    implements Algorithm
    Base class for FIPS approved algorithm identifier implementations.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Object equals method.
      java.lang.String getName()
      Return a string representation of the algorithm.
      int hashCode()
      Object hashCode method.
      boolean requiresAlgorithmParameters()
      Returns true if this algorithm requires additional parameter fields, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Algorithm
        Return a string representation of the algorithm.
        Specified by:
        getName in interface Algorithm
        Returns:
        the algorithm name.
      • requiresAlgorithmParameters

        public final boolean requiresAlgorithmParameters()
        Description copied from interface: Algorithm
        Returns true if this algorithm requires additional parameter fields, false otherwise.
        Specified by:
        requiresAlgorithmParameters in interface Algorithm
        Returns:
        true if algorithm requires parameters.
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from interface: Algorithm
        Object equals method.
        Specified by:
        equals in interface Algorithm
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the object to be checked for equality.
        Returns:
        true if o is equal to this, false otherwise.
      • hashCode

        public int hashCode()
        Description copied from interface: Algorithm
        Object hashCode method.
        Specified by:
        hashCode in interface Algorithm
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        calculated hash code for this object.