
nl.tweeenveertig.openstack.command.identity.authentication.Authentication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joss Show documentation
Show all versions of joss Show documentation
Java Client library for OpenStack Storage (Swift)
package nl.tweeenveertig.openstack.command.identity.authentication;
import org.codehaus.jackson.map.annotate.JsonRootName;
@JsonRootName(value="auth")
public class Authentication {
private PasswordCredentials passwordCredentials;
private String tenantName;
public Authentication(final String tenantName, final String username, final String password) {
this.passwordCredentials = new PasswordCredentials(username, password);
this.tenantName = tenantName;
}
public String getTenantName() {
return this.tenantName;
}
public PasswordCredentials getPasswordCredentials() {
return this.passwordCredentials;
}
}