Java 类org.apache.shiro.authc.pam.ModularRealmAuthenticator 实例源码

项目:dms-webapp    文件:WebSecurityManagerExt.java   
@Override
public void setAuthenticator(Authenticator authenticator) throws IllegalArgumentException {
    super.setAuthenticator(authenticator);
    if (authenticator instanceof ModularRealmAuthenticator) {
           ((ModularRealmAuthenticator) authenticator).setRealms(getRealms());
       }
}
项目:rabbitframework    文件:AuthenticatingSecurityManager.java   
/**
 * Passes on the {@link #getRealms() realms} to the internal delegate <code>Authenticator</code> instance so
 * that it may use them during authentication attempts.
 */
protected void afterRealmsSet() {
    super.afterRealmsSet();
    if (this.authenticator instanceof ModularRealmAuthenticator) {
        ((ModularRealmAuthenticator) this.authenticator).setRealms(getRealms());
    }
}
项目:WebAPI    文件:AtlasSecurity.java   
@Override
public Authenticator getAuthenticator() {
  ModularRealmAuthenticator authenticator = new ModularRealmAuthenticator();
  authenticator.setAuthenticationStrategy(new NegotiateAuthenticationStrategy());

  return authenticator;
}
项目:mica2    文件:SecurityManagerFactory.java   
private void initializeAuthenticator(DefaultSecurityManager dsm) {
  //((AbstractAuthenticator) dsm.getAuthenticator()).setAuthenticationListeners(authenticationListeners);

  if(dsm.getAuthenticator() instanceof ModularRealmAuthenticator) {
    ((ModularRealmAuthenticator) dsm.getAuthenticator()).setAuthenticationStrategy(new FirstSuccessfulStrategy());
  }
}
项目:WebAPI    文件:DisabledSecurity.java   
@Override
public Authenticator getAuthenticator() {
  return new ModularRealmAuthenticator();
}
项目:agate    文件:SecurityManagerFactory.java   
private void initializeAuthenticator(DefaultSecurityManager dsm) {
  if(dsm.getAuthenticator() instanceof ModularRealmAuthenticator) {
    ((ModularRealmAuthenticator) dsm.getAuthenticator()).setAuthenticationStrategy(new FirstSuccessfulStrategy());
  }
}
项目:rabbitframework    文件:AuthenticatingSecurityManager.java   
/**
 * Default no-arg constructor that initializes its internal
 * <code>authenticator</code> instance to a
 * {@link org.apache.shiro.authc.pam.ModularRealmAuthenticator ModularRealmAuthenticator}.
 */
public AuthenticatingSecurityManager() {
    super();
    this.authenticator = new ModularRealmAuthenticator();
}