Package prompto.security.auth.method
Interface DigestMethod
-
- All Superinterfaces:
BiFunction<String,String,String>
- All Known Implementing Classes:
DigestMethod.PBKDF2
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DigestMethod extends BiFunction<String,String,String>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDigestMethod.PBKDF2
-
Field Summary
Fields Modifier and Type Field Description static Map<String,DigestMethod>digestMethods
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Stringdigest(String credentials, String saltString)static DigestMethodforName(String name)static StringnewSalt()-
Methods inherited from interface java.util.function.BiFunction
andThen, apply
-
-
-
-
Field Detail
-
digestMethods
static final Map<String,DigestMethod> digestMethods
-
-
Method Detail
-
forName
static DigestMethod forName(String name)
-
newSalt
static String newSalt() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-