Java 8 LoginModule - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 LoginModule class.

This code example shows how to use the following methods:logout
		return _loginModule.login();
	} 
 
	@Override 
	public boolean logout() throws LoginException {
		return _loginModule.logout();
	} 
 
	private static final String _CLASS_NAME =
		"com.liferay.portal.security.jaas.PortalLoginModule"; 
 
	private final LoginModule _loginModule;
 
} 
5
CodeRank
This code example shows how to use the following methods:logout
		return _loginModule.login();
	} 
 
	@Override 
	public boolean logout() throws LoginException {
		return _loginModule.logout();
	} 
 
	private static final Log _log = LogFactoryUtil.getLog(
		PortalLoginModule.class); 
 
	private final LoginModule _loginModule;
 
} 
5
CodeRank
This code example shows how to use the following methods:abort
This code example shows how to use the following methods:login
This code example shows how to use the following methods:abort
        return delegate.commit();
    } 
 
    @Override 
    public boolean abort() throws LoginException {
        return delegate.abort();
    } 
 
    @Override 
    public boolean logout() throws LoginException {
        return delegate.logout();
    } 
 
} 
3
CodeRank
This code example shows how to use the following methods:login
delegate.initialize(subject, callbackHandler, sharedState, options);
    } 
 
    public boolean login() throws LoginException {
        return delegate.login();
    } 
 
    public boolean abort() throws LoginException {
        return delegate.abort();
    } 
 
    public boolean commit() throws LoginException {
        return delegate.commit();
    } 
 
    public boolean logout() throws LoginException {
        return delegate.logout();
    } 
} 
4
CodeRank
This code example shows how to use the following methods:abort
    this.realModule = RepositoryHelper.getJcrLoginModule();
  } 
 
  @Override 
  public boolean abort() throws LoginException {
    return realModule.abort();
  } 
 
  @Override 
  public boolean commit() throws LoginException {
    return realModule.commit();
  } 
 
  @SuppressWarnings("unchecked") 
  @Override 
  public void initialize(Subject subject, CallbackHandler callbackHandler,
      Map sharedState, Map options) {
    realModule.initialize(subject, callbackHandler, sharedState, options);
  } 
 
4
CodeRank
This code example shows how to use the following methods:login
 
    public boolean login() throws LoginException {
        assertState(); 
 
        if (loginContext == null) {
            return delegate.login();
        } else { 
            loginContext.login();
            loginSucceeded = true;
            return true; 
        } 
    } 
 
    public boolean commit() throws LoginException {
        assertState(); 
 
        if (loginContext == null) {
            return delegate.commit();
        } else { 
            return loginSucceeded;
4
CodeRank
This code example shows how to use the following methods:abort
            throw new RuntimeException(ex);
        } 
    } 
     
    public boolean abort() throws LoginException {
        return module.abort();
    } 
 
    public boolean commit() throws LoginException {
        return module.commit();
    } 
 
    public void initialize(Subject subject, CallbackHandler handler,
                           Map<String, ? extends Object> sharedState, Map<String, ? extends Object> options) {
         
        Map<String, String> customOptions = new HashMap<String, String>();
        customOptions.put("file", fileResource);
         
        module.initialize(subject, handler, sharedState, customOptions);
    } 
4
CodeRank
This code example shows how to use the following methods:abort
 
    /* (non-Javadoc) 
     * @see javax.security.auth.spi.LoginModule#abort() 
     */ 
    public boolean abort() throws LoginException {
        return target.abort();
    } 
 
    /* (non-Javadoc) 
     * @see javax.security.auth.spi.LoginModule#logout() 
     */ 
    public boolean logout() throws LoginException {
        return target.logout();
    } 
 
} 
5
CodeRank
See Code Examples for Java 8 LoginModule Methods: