Package org.apache.shiro.crypto.hash
Class HashProvider
java.lang.Object
org.apache.shiro.crypto.hash.HashProvider
Hashes used by the Shiro2CryptFormat class.
Instead of maintaining them as an Enum, ServiceLoaders would provide a pluggable alternative.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetByAlgorithmName(String algorithmName) Find a KDF implementation by searching the algorithms.
-
Method Details
-
getByAlgorithmName
Find a KDF implementation by searching the algorithms.- Parameters:
algorithmName- the algorithmName to match. This is case-sensitive.- Returns:
- an instance of
HashProviderif found, otherwiseOptional.empty(). - Throws:
NullPointerException- if the given parameter algorithmName isnull.
-