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 type
B - 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
  • Field Details

    • value

      protected final String value
      The encoded password value.
    • encoder

      protected final B extends Password.Encoder<A,B> encoder
      The password encoder.
  • Constructor Details

    • AbstractPassword

      protected AbstractPassword(String encoded, B encoder)

      Creates a password with the specified value and encoder.

      Parameters:
      encoded - the encoded password value
      encoder - the password encoder
  • Method Details