Package org.apache.shiro.mgt

Examples of org.apache.shiro.mgt.RealmSecurityManager.authenticate()


    }

    // Ask the sec-manager to authenticate, this won't alter the current subject
    RealmSecurityManager sm = security.getSecurityManager();
    try {
      sm.authenticate(new UsernamePasswordToken(username, password));
    }
    catch (AuthenticationException e) {
      log.trace("Authentication failed", e);
      throw new WebApplicationException("Authentication failed", Status.FORBIDDEN);
    }
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.