Package org.springframework.security.web.authentication

Examples of org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler


  }

  public void setPostLoginUrl(String postLoginUrl) {
    AuthenticationSuccessHandler successHandler = getSuccessHandler();
    if (successHandler instanceof AbstractAuthenticationTargetUrlRequestHandler) {
      AbstractAuthenticationTargetUrlRequestHandler h = (AbstractAuthenticationTargetUrlRequestHandler) successHandler;
      h.setDefaultTargetUrl(postLoginUrl);
    } else {
      throw new IllegalStateException("can't set postLoginUrl on unknown successHandler, type is " + successHandler.getClass().getName());
    }
  }
View Full Code Here


  }

  public void setAlwaysUsePostLoginUrl(boolean alwaysUsePostLoginUrl) {
    AuthenticationSuccessHandler successHandler = getSuccessHandler();
    if (successHandler instanceof AbstractAuthenticationTargetUrlRequestHandler) {
      AbstractAuthenticationTargetUrlRequestHandler h = (AbstractAuthenticationTargetUrlRequestHandler) successHandler;
      h.setAlwaysUseDefaultTargetUrl(alwaysUsePostLoginUrl);
    } else {
      throw new IllegalStateException("can't set alwaysUsePostLoginUrl on unknown successHandler, type is " + successHandler.getClass().getName());
    }
  }
View Full Code Here

  }

  public void setPostLoginUrl(String postLoginUrl) {
    AuthenticationSuccessHandler successHandler = getSuccessHandler();
    if (successHandler instanceof AbstractAuthenticationTargetUrlRequestHandler) {
      AbstractAuthenticationTargetUrlRequestHandler h = (AbstractAuthenticationTargetUrlRequestHandler) successHandler;
      h.setDefaultTargetUrl(postLoginUrl);
    } else {
      throw new IllegalStateException("can't set postLoginUrl on unknown successHandler, type is " + successHandler.getClass().getName());
    }
  }
View Full Code Here

  }

  public void setAlwaysUsePostLoginUrl(boolean alwaysUsePostLoginUrl) {
    AuthenticationSuccessHandler successHandler = getSuccessHandler();
    if (successHandler instanceof AbstractAuthenticationTargetUrlRequestHandler) {
      AbstractAuthenticationTargetUrlRequestHandler h = (AbstractAuthenticationTargetUrlRequestHandler) successHandler;
      h.setAlwaysUseDefaultTargetUrl(alwaysUsePostLoginUrl);
    } else {
      throw new IllegalStateException("can't set alwaysUsePostLoginUrl on unknown successHandler, type is " + successHandler.getClass().getName());
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.