Module io.inverno.mod.security
Class AbstractPassword<A extends Password<A,B>,B extends Password.Encoder<A,B>>
java.lang.Object
io.inverno.mod.security.authentication.password.AbstractPassword<A,B>
- Type Parameters:
A
- the password typeB
- the password encoder type
- All Implemented Interfaces:
Password<A,
B>
- Direct Known Subclasses:
Argon2Password
,BCryptPassword
,DigestPassword
,MessageDigestPassword
,PBKDF2Password
,RawPassword
,SCryptPassword
public abstract class AbstractPassword<A extends Password<A,B>,B extends Password.Encoder<A,B>>
extends Object
implements Password<A,B>
Base password implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.security.authentication.password.Password
Password.Encoder<A extends Password<A,
B>, B extends Password.Encoder<A, B>> -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPassword
(String encoded, B encoder) Creates a password with the specified value and encoder. -
Method Summary
-
Field Details
-
value
The encoded password value. -
encoder
The password encoder.
-
-
Constructor Details
-
AbstractPassword
Creates a password with the specified value and encoder.
- Parameters:
encoded
- the encoded password valueencoder
- the password encoder
-
-
Method Details
-
getValue
Description copied from interface:Password
Returns the representation of the password encoded with the password encoder.
-
getEncoder
Description copied from interface:Password
Returns the password encoder.
- Specified by:
getEncoder
in interfacePassword<A extends Password<A,
B>, B extends Password.Encoder<A, B>> - Returns:
- a password encoder
-
hashCode
public int hashCode() -
equals
-