Groovy Documentation

org.linkedin.glu.orchestration.engine.authorization
[Groovy] Interface AuthorizationService


interface AuthorizationService

Authors:
yan@pongasoft.com


Method Summary
void checkRole(java.lang.String role, java.lang.String message, java.security.Permission permission)

Make sure that the current executing principal has the provided role

java.lang.String getExecutingPrincipal()

@return the executing principal (who is executing the code)

 

Method Detail

checkRole

void checkRole(java.lang.String role, java.lang.String message, java.security.Permission permission)
Make sure that the current executing principal has the provided role
throws:
AccessControlException if it does not have the provided
Parameters:
message - the (optional) message to provide to the exception
permission - the (optional) permission to provide to the exception


getExecutingPrincipal

java.lang.String getExecutingPrincipal()
Returns:
the executing principal (who is executing the code)


 

Groovy Documentation