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


@Beta
public interface TokenApi

Provides synchronous access to the KeyStone Admin API.

Author:
Adam Lowe
See Also:
TokenAsyncApi,

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<? extends 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

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

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

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

Set<? extends 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-2013 The Apache Software Foundation. All Rights Reserved.