Package com.woorea.openstack.keystone.model

Examples of com.woorea.openstack.keystone.model.Authentication


    }
   
    public class Builder {
     
      public Authenticate withUsernamePassword(String username, String password) {
        Authentication authentication = new UsernamePassword(username, password);
        return new Authenticate(authentication);
      }
View Full Code Here


        Authentication authentication = new UsernamePassword(username, password);
        return new Authenticate(authentication);
      }
     
      public Authenticate withToken(String token) {
        Authentication authentication = new TokenAuthentication(token);
        return new Authenticate(authentication);
      }
View Full Code Here

        Authentication authentication = new TokenAuthentication(token);
        return new Authenticate(authentication);
      }
     
      public Authenticate withAccessKey(String accessKey, String secretKey) {
        Authentication authentication = new AccessKey(accessKey, secretKey);
        return new Authenticate(authentication);
      }
View Full Code Here

  }

  private String obtainFilterToken() {
    Keystone keystone = new Keystone(props.getKeystoneHost() + ':'
        + props.getKeystonePort() + '/' + props.getOAuthVersion());
    Authentication authentication = new UsernamePassword(
        props.getKeystoneProxyUser(), props.getKeystoneProxyPass());

    Access access = keystone.tokens().authenticate(authentication)
        .execute();
View Full Code Here

TOP

Related Classes of com.woorea.openstack.keystone.model.Authentication

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.