Package ch.tocco.nice2.security.api
Interface GuardContext
public interface GuardContext
Provides additional functionality for custom guard implementations, like
access to the current principal and security context as well as the ability
to evaluate conditions.
-
Method Summary
-
Method Details
-
getPrincipal
Principal getPrincipal() -
getPolicy
Policy getPolicy()- Returns:
- the policy processed with the
Phase.GUARD
phase
-
getSecurityContext
SecurityContext getSecurityContext() -
getSecurityDomainName
String getSecurityDomainName() -
evaluateCondition
- Throws:
EvaluationException
-