public class Credentials extends Auth implements AuthStore
Constructor and Description |
---|
Credentials() |
Credentials(String username,
String password) |
Credentials(String username,
String password,
String domainId) |
Modifier and Type | Method and Description |
---|---|
String |
getId()
If this is a
AuthVersion.V2 then this is the tenantId. |
String |
getName()
If this is a
AuthVersion.V2 then this is the tenant name. |
String |
getPassword() |
String |
getUsername() |
AuthVersion |
getVersion() |
getDomainId, getDomainName, getProjectId, getProjectName, getType, setDomainId, setDomainName, setProjectId, setProjectName
public String getUsername()
getUsername
in interface AuthStore
public String getPassword()
getPassword
in interface AuthStore
public String getId()
AuthStore
AuthVersion.V2
then this is the tenantId. If AuthVersion.V3
then this maps to the projectIdpublic String getName()
AuthStore
AuthVersion.V2
then this is the tenant name. If AuthVersion.V3
then this maps to the project namepublic AuthVersion getVersion()
getVersion
in interface AuthStore
Copyright © 2017. All rights reserved.