PreConfiguredUserLoginModule class

This login module only authenticates pre-configured users.

Syntax

public class PreConfiguredUserLoginModule

Remarks

It supports three configuration options:

  • username - valid user name.
  • password - encoded password for the user. The expected format is"{HASH_ALG_ID[:salt]}base64 encoded password digest calculated using the specified algorithm and the salt}" [ ] represents optional data
  • roles - comma separated list of roles that are granted to the user.
The user name supplied in the callback is set as the name of the principal added to the subject upon successful authentication. The specified roles are also added as a Principal to the subject.