org.jclouds.openstack.keystone.v2_0.features
Interface TokenApi


public interface TokenApi

Provides access to the Keystone Admin API.


Method Summary
 Token get(String token)
          Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
 User getUserOfToken(String token)
          Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/
 boolean isValid(String token)
          Validate a token.
 Set<Endpoint> listEndpointsForToken(String token)
          List all endpoints for a token

NOTE: currently not working in openstack ( https://bugs.launchpad.net/keystone/+bug/988672 )

 

Method Detail

get

@Named(value="token:get")
@Nullable
Token get(String token)
Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/

Returns:
the requested information

getUserOfToken

@Named(value="token:getuser")
@Nullable
User getUserOfToken(String token)
Validate a token and, if it is valid, return access information regarding the tenant (though not the service catalog)/

Returns:
the requested information

isValid

@Named(value="token:valid")
boolean isValid(String token)
Validate a token. This is a high-performance variant of the #getToken() call that does not return any further information.

Returns:
true if the token is valid

listEndpointsForToken

@Named(value="token:listEndpoints")
Set<Endpoint> listEndpointsForToken(String token)
List all endpoints for a token

NOTE: currently not working in openstack ( https://bugs.launchpad.net/keystone/+bug/988672 )

Returns:
the set of endpoints


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.