public class KeystoneAuth extends Object implements Authentication, AuthStore
| Modifier and Type | Class and Description |
|---|---|
static class |
KeystoneAuth.AuthIdentity |
static class |
KeystoneAuth.AuthScope |
Authentication.Identity, Authentication.Scope| Constructor and Description |
|---|
KeystoneAuth(String tokenId) |
KeystoneAuth(String username,
String password) |
KeystoneAuth(String username,
String password,
Identifier domain,
KeystoneAuth.AuthScope scope) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
If this is a
AuthVersion.V2 then this is the tenantId. |
Authentication.Identity |
getIdentity() |
String |
getName()
If this is a
AuthVersion.V2 then this is the tenant name. |
String |
getPassword() |
Authentication.Scope |
getScope() |
String |
getUsername() |
AuthVersion |
getVersion() |
<T> T |
unwrap() |
public KeystoneAuth(String tokenId)
public KeystoneAuth(String username, String password, Identifier domain, KeystoneAuth.AuthScope scope)
public Authentication.Identity getIdentity()
getIdentity in interface Authenticationpublic Authentication.Scope getScope()
getScope in interface Authenticationpublic <T> T unwrap()
unwrap in interface AuthStoreAuthStore.getVersion()public String getUsername()
getUsername in interface AuthStorepublic String getPassword()
getPassword in interface AuthStorepublic String getId()
AuthStoreAuthVersion.V2 then this is the tenantId. If AuthVersion.V3 then this maps to the domainIdpublic String getName()
AuthStoreAuthVersion.V2 then this is the tenant name. If AuthVersion.V3 then this maps to the domain namepublic AuthVersion getVersion()
getVersion in interface AuthStore