Interface IAuthRuleBuilder
- All Known Implementing Classes:
RuleBuilder
public interface IAuthRuleBuilder
Used by
AuthorizationInterceptor
in order to allow user code to define authorization
rules.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionallow()
Start a new rule to allow a given operationStart a new rule to allow a given operationallowAll()
This rule allows any invocation to proceed.This rule allows any invocation to proceed.build()
Build the rule listdeny()
Start a new rule to deny a given operationStart a new rule to deny a given operationdenyAll()
This rule allows any invocation to proceed.This rule allows any invocation to proceed.
-
Method Details
-
allow
Start a new rule to allow a given operation -
allow
Start a new rule to allow a given operation- Parameters:
theRuleName
- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
allowAll
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsdeny()
rules in order to specify a blacklist chain.This call completes the rule and adds the rule to the chain.
-
allowAll
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsdeny()
rules in order to specify a blacklist chain.This call completes the rule and adds the rule to the chain.
- Parameters:
theRuleName
- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
build
Build the rule list -
deny
Start a new rule to deny a given operation -
deny
Start a new rule to deny a given operation- Parameters:
theRuleName
- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-
denyAll
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsallow()
rules in order to specify a whitelist chain.This call completes the rule and adds the rule to the chain.
-
denyAll
This rule allows any invocation to proceed. It is intended to be used at the end of a chain that containsallow()
rules in order to specify a whitelist chain.This call completes the rule and adds the rule to the chain.
- Parameters:
theRuleName
- The name of this rule. The rule name is used for logging and error messages, and could be shown to the client, but has no semantic meaning within HAPI FHIR.
-