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.SerializableBase interface for an algorithm descriptor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Object equals method.java.lang.StringgetName()Return a string representation of the algorithm.inthashCode()Object hashCode method.booleanrequiresAlgorithmParameters()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:
equalsin 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:
hashCodein classjava.lang.Object- Returns:
- calculated hash code for this object.
-
-