Package org.bouncycastle.crypto
Interface Algorithm
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
DigestAlgorithm
- All Known Implementing Classes:
FipsAlgorithm
,FipsDigestAlgorithm
,GeneralAlgorithm
,GeneralDigestAlgorithm
public interface Algorithm extends java.io.Serializable
Base interface for an algorithm descriptor.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getName
java.lang.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(java.lang.Object o)
Object equals method.- Overrides:
equals
in classjava.lang.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 classjava.lang.Object
- Returns:
- calculated hash code for this object.
-
-