Class GenericLoginCredentials

java.lang.Object
io.inverno.mod.security.internal.authentication.GenericLoginCredentials
All Implemented Interfaces:
Credentials, LoginCredentials, PrincipalCredentials

public class GenericLoginCredentials extends Object implements LoginCredentials

Generic LoginCredentials implementation.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

  • Method Details

    • getUsername

      public String getUsername()
      Description copied from interface: PrincipalCredentials

      Returns the unique username associated to the entity.

      Specified by:
      getUsername in interface PrincipalCredentials
      Returns:
      a username
    • getPassword

      public Password<?,?> getPassword()
      Description copied from interface: LoginCredentials

      Returns the password.

      Specified by:
      getPassword in interface LoginCredentials
      Returns:
      a password
    • isLocked

      public boolean isLocked()
      Description copied from interface: Credentials

      Determines whether a credentials is locked.

      Locked credentials should be considered invalid by authenticators when matching provided credentials with stored entity credentials.

      Specified by:
      isLocked in interface Credentials
      Returns:
      true if credentials are locked, false otherwise
    • setLocked

      public void setLocked(boolean locked)
      Locks/Unlocks the credentials.
      Parameters:
      locked - true to lock the credentials, false otherwise