Package org.apache.wicket.authentication

Examples of org.apache.wicket.authentication.IAuthenticationStrategy.load()


    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
View Full Code Here


  @Override
  public boolean isSignedIn() {
    if (userId < 1) {
      IAuthenticationStrategy strategy = getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = strategy.load();
      if ((data != null) && (data.length > 2)) {
        // try to sign in the user
        if (!signIn(data[0], data[1], data[2])) {
          // the loaded credentials are wrong. erase them.
          strategy.remove();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.