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 Authentication
public Authentication.Scope getScope()
getScope
in interface Authentication
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.