public interface AuthContext
LoginContext
 but can work in a non-JAAS environment.
 This class is abstract and has two implementations:
JAASAuthContext which delegates to a regular JAAS LoginContextLocalAuthContext which implements authentication using a locally-defined
       JAAS LoginModule| Modifier and Type | Method and Description | 
|---|---|
Subject | 
getSubject()
Return the authenticated Subject. 
 | 
void | 
login()
Perform the authentication and, if successful, associate Principals and Credentials
 with the authenticated 
Subject. | 
void | 
logout()
Logout the  
Subject. | 
void login()
           throws LoginException
Subject.LoginException - if the authentication fails.LoginContext.login()Subject getSubject()
null if authentication failed.LoginContext.getSubject()void logout()
            throws LoginException
Subject.LoginException - if the logout fails.LoginContext.logout()Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.