Package fi.luomus.commons.utils

Examples of fi.luomus.commons.utils.LintuvaaraAuthenticationUtil$ValidationResultImple


      decryptor = new AESDecryptor(rsaKey);
    } catch (AESDecryptorInitializationException e) {
      e.printStackTrace();
    }
    Collection<String> allowedUserTypes = Utils.collection("admin", "rengastaja");
    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
View Full Code Here

TOP

Related Classes of fi.luomus.commons.utils.LintuvaaraAuthenticationUtil$ValidationResultImple

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.