Package fi.luomus.commons.utils.LintuvaaraAuthenticationUtil

Examples of fi.luomus.commons.utils.LintuvaaraAuthenticationUtil.AuthenticationResult


    LintuvaaraAuthenticationUtil authUtil = new LintuvaaraAuthenticationUtil(decryptor, "pistelaskenta", allowedUserTypes);

    String key = "these you get";
    String iv = "as a parameter";
    String model = "from the user";
    AuthenticationResult result = authUtil.check(key, iv, model);
    if (result.success()) {
      // do something...
      result.getUsermodel().get("login_id");
    } else {
      // do something else
      assert(result.getCause().equals("incorrect login parameters"));
    }
  }
View Full Code Here

TOP

Related Classes of fi.luomus.commons.utils.LintuvaaraAuthenticationUtil.AuthenticationResult

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.