Class KeystoneAuth
- java.lang.Object
-
- org.openstack4j.openstack.identity.v3.domain.KeystoneAuth
-
- All Implemented Interfaces:
Serializable,AuthStore,Authentication,ModelEntity
public class KeystoneAuth extends Object implements Authentication, AuthStore
Represents an v3 Auth object.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeystoneAuth.AuthIdentitystatic classKeystoneAuth.AuthScope-
Nested classes/interfaces inherited from interface org.openstack4j.model.identity.v3.Authentication
Authentication.Identity, Authentication.Scope
-
-
Constructor Summary
Constructors Modifier Constructor Description KeystoneAuth()KeystoneAuth(String tokenId)KeystoneAuth(String userId, String password)KeystoneAuth(String user, String password, Identifier domain, KeystoneAuth.AuthScope scope)KeystoneAuth(String tokenId, KeystoneAuth.AuthScope scope)protectedKeystoneAuth(Auth.Type type)KeystoneAuth(KeystoneAuth.AuthScope scope, Auth.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()If this is aAuthVersion.V2then this is the tenantId.Authentication.IdentitygetIdentity()StringgetName()If this is aAuthVersion.V2then this is the tenant name.StringgetPassword()Authentication.ScopegetScope()Auth.TypegetType()StringgetUsername()AuthVersiongetVersion()
-
-
-
Constructor Detail
-
KeystoneAuth
public KeystoneAuth()
-
KeystoneAuth
public KeystoneAuth(String tokenId)
-
KeystoneAuth
public KeystoneAuth(String tokenId, KeystoneAuth.AuthScope scope)
-
KeystoneAuth
public KeystoneAuth(String user, String password, Identifier domain, KeystoneAuth.AuthScope scope)
-
KeystoneAuth
public KeystoneAuth(KeystoneAuth.AuthScope scope, Auth.Type type)
-
KeystoneAuth
protected KeystoneAuth(Auth.Type type)
-
-
Method Detail
-
getType
public Auth.Type getType()
-
getIdentity
public Authentication.Identity getIdentity()
- Specified by:
getIdentityin interfaceAuthentication
-
getScope
public Authentication.Scope getScope()
- Specified by:
getScopein interfaceAuthentication
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceAuthStore- Returns:
- the username used to authenticate
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceAuthStore- Returns:
- the password used to authenticate
-
getId
public String getId()
Description copied from interface:AuthStoreIf this is aAuthVersion.V2then this is the tenantId. IfAuthVersion.V3then this maps to the projectId
-
getName
public String getName()
Description copied from interface:AuthStoreIf this is aAuthVersion.V2then this is the tenant name. IfAuthVersion.V3then this maps to the project name
-
getVersion
public AuthVersion getVersion()
- Specified by:
getVersionin interfaceAuthStore- Returns:
- the version of this authentication store type
-
-