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| Modifier | Constructor and Description |
|---|---|
|
KeystoneAuth() |
protected |
KeystoneAuth(Auth.Type type) |
|
KeystoneAuth(String tokenId,
KeystoneAuth.AuthScope scope) |
|
KeystoneAuth(String userId,
String password) |
|
KeystoneAuth(String user,
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() |
Auth.Type |
getType() |
String |
getUsername() |
AuthVersion |
getVersion() |
public KeystoneAuth()
public KeystoneAuth(String tokenId, KeystoneAuth.AuthScope scope)
public KeystoneAuth(String user, String password, Identifier domain, KeystoneAuth.AuthScope scope)
protected KeystoneAuth(Auth.Type type)
public Auth.Type getType()
public Authentication.Identity getIdentity()
getIdentity in interface Authenticationpublic Authentication.Scope getScope()
getScope in interface Authenticationpublic 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 projectIdpublic String getName()
AuthStoreAuthVersion.V2 then this is the tenant name. If AuthVersion.V3 then this maps to the project namepublic AuthVersion getVersion()
getVersion in interface AuthStoreCopyright © 2017. All rights reserved.