login() method

Forces the context to be authenticated.

Syntax

void login () throws javax.security.auth.login.LoginException

Exceptions

Usage

If it's already authenticated, throws a LoginException.