Package org.rundeck.core.auth.access
Interface AuthorizingAccess
-
- All Known Subinterfaces:
AuthorizingAppType,AuthorizingIdResource<T,ID>,AuthorizingProjectAcl,AuthorizingProjectAdhoc,AuthorizingProjectType,AuthorizingResource<T>,AuthorizingSystem
- All Known Implementing Classes:
BaseAuthorizingAccess,BaseAuthorizingIdResource,BaseAuthorizingResource
public interface AuthorizingAccessSimple authorizing access
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthorize(AuthActions actions)Check authorizationvoidauthorizeNamed(NamedAuthRequest namedAuthRequest)Check authorizationcom.dtolabs.rundeck.core.authorization.UserAndRolesAuthContextgetAuthContext()booleanisAuthorized(AuthActions actions)test authorizationbooleanisAuthorized(NamedAuthRequest namedAuthRequest)Check authorization
-
-
-
Method Detail
-
getAuthContext
com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext getAuthContext()
- Returns:
- auth context
-
authorize
void authorize(AuthActions actions) throws UnauthorizedAccess, NotFound
Check authorization- Parameters:
actions- auth actions- Throws:
UnauthorizedAccess- if unauthorizedNotFound- if not found
-
authorizeNamed
void authorizeNamed(NamedAuthRequest namedAuthRequest) throws UnauthorizedAccess, NotFound
Check authorization- Parameters:
namedAuthRequest- named auth check- Throws:
UnauthorizedAccess- if unauthorizedNotFound- if not found
-
isAuthorized
boolean isAuthorized(NamedAuthRequest namedAuthRequest) throws NotFound
Check authorization- Parameters:
namedAuthRequest- named auth check- Throws:
NotFound- if not found
-
isAuthorized
boolean isAuthorized(AuthActions actions) throws NotFound
test authorization- Parameters:
actions- auth actions- Returns:
- true if authorized, false otherwise
- Throws:
NotFound- if not found
-
-