Package cgl.shindig.security

Examples of cgl.shindig.security.SimpleCredentials


        String plainTextPwd = user.getPassword();
        String cryptedPwd;
      //If the password is NOT encrypted, then encrypt it.
        if (!pwdCrypted) {
      try {
        cryptedPwd = new CryptedSimpleCredentials(new SimpleCredentials(user.getScreenname(), plainTextPwd.toCharArray())).getPassword();
      } catch (NoSuchAlgorithmException e) {
        e.printStackTrace();
        return false;
      } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
View Full Code Here


        return principal;
    }

    public Credentials getCredentials() {
        if (credentials == null) {
      credentials = new SimpleCredentials(this.getScreenname(), this.getPassword().toCharArray());
    }
        return credentials;
    }
View Full Code Here

        return authenzResult;
    }

    private void portalLogin (String userId, String password, AuthenzResult authenzResult) {
      //FIXME?  These authenzRC state numbers are confusing.
        SimpleCredentials creds =
            new SimpleCredentials(userId, password.toCharArray());
        if (portal.login(creds, null)) {
            signInCallback(userId, portal);

            // TODO: maybe it's better to make portal.login method return
            // authenticated user object?
View Full Code Here

TOP

Related Classes of cgl.shindig.security.SimpleCredentials

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.