private LoginContext doLoginContext(String jaasEntryName, CallbackHandler callbackHandler, Subject partialSubject) throws LoginException {
        LoginContext loginContext;
        loginContext = createLoginContext(jaasEntryName, callbackHandler, partialSubject);
        loginContext.login();
        return loginContext;
    }
private LoginContext doLoginContext ( String jaasEntryName , CallbackHandler callbackHandler , Subject partialSubject ) throws LoginException { LoginContext loginContext ; loginContext = createLoginContext ( jaasEntryName , callbackHandler , partialSubject ) ; loginContext . login ( ) ; return loginContext ; }
@param jaasEntryName
@param callbackHandler
@param partialSubject
@return
@throws LoginException