Class AlwaysFail
java.lang.Object
com.tremolosecurity.proxy.az.AlwaysFail
- All Implemented Interfaces:
CustomAuthorization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn ths current workflowvoidInitializes the custom AZ rule with the configurationbooleanisAuthorized(AuthInfo subject, String... params) Determines if the subject in the parameter is authorized by this rulelistPossibleApprovers(String... params) Provides a list of subjects that could be authorized based on this rule.voidSets the config manager for access to Unison resources, run on each de-serializationvoidsetWorkflow(Workflow wf) Sets the workflow this rule will be a part of.
-
Constructor Details
-
AlwaysFail
public AlwaysFail()
-
-
Method Details
-
init
Description copied from interface:CustomAuthorizationInitializes the custom AZ rule with the configuration- Specified by:
initin interfaceCustomAuthorization- Parameters:
config- Name/Value pairs- Throws:
AzException
-
loadConfigManager
Description copied from interface:CustomAuthorizationSets the config manager for access to Unison resources, run on each de-serialization- Specified by:
loadConfigManagerin interfaceCustomAuthorization- Parameters:
cfg-- Throws:
AzException
-
setWorkflow
Description copied from interface:CustomAuthorizationSets the workflow this rule will be a part of. Called after cloning an instance of the rule for a particular workflow- Specified by:
setWorkflowin interfaceCustomAuthorization- Parameters:
wf-- Throws:
AzException
-
isAuthorized
Description copied from interface:CustomAuthorizationDetermines if the subject in the parameter is authorized by this rule- Specified by:
isAuthorizedin interfaceCustomAuthorization- Parameters:
subject- Subject to be testedparams- List of optional values specific to this call- Returns:
- True if authorized, False if not
- Throws:
AzException
-
listPossibleApprovers
Description copied from interface:CustomAuthorizationProvides a list of subjects that could be authorized based on this rule. The value of each list item should be the distinguished name of the user in Unison- Specified by:
listPossibleApproversin interfaceCustomAuthorization- Parameters:
params- List of optional values specific to this call- Returns:
- Throws:
AzException
-
getWorkflow
Description copied from interface:CustomAuthorizationReturn ths current workflow- Specified by:
getWorkflowin interfaceCustomAuthorization- Returns:
-