Package org.jvnet.libpam

Examples of org.jvnet.libpam.PAM.authenticate()


    PAM pam = null;
    try {
      String serviceName = settings.getString(Keys.realm.pam.serviceName, "system-auth");
      pam = new PAM(serviceName);
      pam.authenticate(username, new String(password));
    } catch (PAMException e) {
      logger.error(e.getMessage());
      return null;
    } finally {
      if (pam != null) {
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.