public interface AuthTokenManager
Modifier and Type | Method and Description |
---|---|
boolean |
deleteToken(java.lang.String token)
Delete an authentication token
|
AuthenticationToken |
getToken(java.lang.String token)
Retrieve token information from storage
|
boolean |
importWebhookToken(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext,
java.lang.String token,
java.lang.String user,
java.util.Set<java.lang.String> roleSet)
Import a Webhook type api token
|
java.util.Set<java.lang.String> |
parseAuthRoles(java.lang.String authRoles)
Parse a comma separated list of roles into a role Set
|
boolean |
updateAuthRoles(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext,
java.lang.String token,
java.util.Set<java.lang.String> roleSet)
Update the roles associated with the authentication token
|
AuthenticationToken getToken(java.lang.String token)
token
- The token string that identifies the tokenboolean updateAuthRoles(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext, java.lang.String token, java.util.Set<java.lang.String> roleSet) throws java.lang.Exception
token
- token idroleSet
- the new list of rolesjava.lang.Exception
boolean deleteToken(java.lang.String token)
token
- token identifierjava.util.Set<java.lang.String> parseAuthRoles(java.lang.String authRoles)
authRoles
- String of roles separated by a commaboolean importWebhookToken(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext, java.lang.String token, java.lang.String user, java.util.Set<java.lang.String> roleSet) throws java.lang.Exception
token
- token iduser
- the user that is represented by this auth tokenroleSet
- set of roles for the auth tokenjava.lang.Exception