javax.security.auth.login (Java Platform SE 8 )
Keywords: javax.security.auth.login package
Date: 2026-01-21

# Package javax.security.auth.login

This package provides a pluggable authentication framework.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  Configuration.Parameters | This represents a marker interface for Configuration parameters.

- Class Summary
  Class | Description
  --- | ---
  AppConfigurationEntry | This class represents a single `LoginModule` entry configured for the application specified in the `getAppConfigurationEntry(String appName)` method in the `Configuration` class.
  AppConfigurationEntry.LoginModuleControlFlag | This class represents whether or not a `LoginModule` is REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL.
  Configuration | A Configuration object is responsible for specifying which LoginModules should be used for a particular application, and in what order the LoginModules should be invoked.
  ConfigurationSpi | This class defines the Service Provider Interface (SPI) for the `Configuration` class.
  LoginContext | The `LoginContext` class describes the basic methods used to authenticate Subjects and provides a way to develop an application independent of the underlying authentication technology.

- Exception Summary
  Exception | Description
  --- | ---
  AccountException | A generic account exception.
  AccountExpiredException | Signals that a user account has expired.
  AccountLockedException | Signals that an account was locked.
  AccountNotFoundException | Signals that an account was not found.
  CredentialException | A generic credential exception.
  CredentialExpiredException | Signals that a `Credential` has expired.
  CredentialNotFoundException | Signals that a credential was not found.
  FailedLoginException | Signals that user authentication failed.
  LoginException | This is the basic login exception.

## Package javax.security.auth.login Description

This package provides a pluggable authentication framework.

## Package Specification

- Java™ Cryptography Architecture Standard Algorithm Name Documentation

Since:
  1.4

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.