Package com.rsa.authagent.authapi

Examples of com.rsa.authagent.authapi.AuthSessionFactory


    public boolean authenticate(String username, String password)
    {
        boolean valid = false;
        try
        {
            AuthSessionFactory api = AuthSessionFactory.getInstance(configPath);
            AuthSession authSession = api.createUserSession();
            int status = authSession.check(username, password);
            authSession.close();
            api.shutdown();
            valid = (status == AuthSession.ACCESS_OK);
        }
        catch (Exception e)
        {
            // an exception is expected when bad credentials are used
View Full Code Here

TOP

Related Classes of com.rsa.authagent.authapi.AuthSessionFactory

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.