Forces the context to be authenticated.
Syntax
void
login
() throws LoginException
Exceptions
-
javax.security.auth.login.LoginException –
thrown if any errors encountered while performing authentication.
-
IllegalStateException –
if the context has been destroyed.
Usage
If it's already authenticated, throws a LoginException.