public class KeystoneTokenProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Keystone |
keystone |
protected String |
password |
protected String |
username |
| Constructor and Description |
|---|
KeystoneTokenProvider(String endpoint,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
expireAccessByTenant(String tenantName) |
Access |
getAccessByTenant(String tenantName)
Returns the access object used to authenticate the user and to authorize access to resources owned by this
tenant.
|
OpenStackTokenProvider |
getProviderByTenant(String tenantName) |
protected Keystone keystone
protected String username
protected String password
public Access getAccessByTenant(String tenantName) throws OpenStackConnectException, OpenStackResponseException
tenantName - The name or id of the tenantOpenStackConnectException - If the connection to the provider cannot be established. This exception indicates that the provider
is not reachable, or that some failure occurred attempting to open the connection to the provider.OpenStackResponseException - If the provider responds with some form of error regarding the request, such as unauthorized. This is
an indication that there is a problem with the request itself, not the connection. @see
com.woorea.openstack
.base.client.OpenStackClientConnector#request(com.woorea.openstack.base.client.OpenStackRequest)public void expireAccessByTenant(String tenantName)
public OpenStackTokenProvider getProviderByTenant(String tenantName)
Copyright © 2012–2019. All rights reserved.