public static class SimpleAuthorisationService.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SimpleAuthorisationService.Builder |
addGeneralRule(int protocolId,
boolean isAllowed)
Add rule for all principals that is scoped to a protocolId.
|
SimpleAuthorisationService.Builder |
addGeneralRule(int protocolId,
int actionId,
boolean isAllowed)
Add rule for all principals that is scoped to a protocolId and actionId.
|
SimpleAuthorisationService.Builder |
addGeneralRule(int protocolId,
int actionId,
Object type,
boolean isAllowed)
Add rule for all principals that is scoped to a protocolId, actionId and type.
|
SimpleAuthorisationService.Builder |
addPrincipalRule(int protocolId,
byte[] encodedPrincipal,
boolean isAllowed)
Add rule for a specific principal that is scope to a protocolId.
|
SimpleAuthorisationService.Builder |
addPrincipalRule(int protocolId,
int actionId,
byte[] encodedPrincipal,
boolean isAllowed)
Add rule for a specific principal that is scope to a protocolId and actionId.
|
SimpleAuthorisationService.Builder |
addPrincipalRule(int protocolId,
int actionId,
Object type,
byte[] encodedPrincipal,
boolean isAllowed)
Add rule for a specific principal that is scope to a protocolId, actionId, and type.
|
SimpleAuthorisationService.Builder |
defaultAuthorisation(AuthorisationService defaultAuthorisation)
Set the default authorisation if the authorisation request does not match any of the supplied rules.
|
SimpleAuthorisationService |
newInstance()
Create and instance of the SimpleAuthorisationService.
|
public SimpleAuthorisationService.Builder defaultAuthorisation(AuthorisationService defaultAuthorisation)
defaultAuthorisation - an authorisation service to fall back to.AuthorisationService.ALLOW_ALL,
AuthorisationService.DENY_ALLpublic SimpleAuthorisationService.Builder addPrincipalRule(int protocolId, int actionId, Object type, byte[] encodedPrincipal, boolean isAllowed)
protocolId - sbe:messageSchema@id value that the rule applies to.actionId - sbe:message@id value that the rule applies to.type - a parameter of the message can be used to narrow the scope of the authorisation
rule. This is message dependent.encodedPrincipal - The principal encoded as byte array.isAllowed - If the rule should allow or deny access.public SimpleAuthorisationService.Builder addPrincipalRule(int protocolId, int actionId, byte[] encodedPrincipal, boolean isAllowed)
protocolId - sbe:messageSchema@id value that the rule applies to.actionId - sbe:message@id value that the rule applies to.encodedPrincipal - The principal encoded as byte array.isAllowed - If the rule should allow or deny access.public SimpleAuthorisationService.Builder addPrincipalRule(int protocolId, byte[] encodedPrincipal, boolean isAllowed)
protocolId - sbe:messageSchema@id value that the rule applies to.encodedPrincipal - The principal encoded as byte array.isAllowed - If the rule should allow or deny access.public SimpleAuthorisationService.Builder addGeneralRule(int protocolId, int actionId, Object type, boolean isAllowed)
protocolId - sbe:messageSchema@id value that the rule applies to.actionId - sbe:message@id value that the rule applies to.type - a parameter of the message can be used to narrow the scope of the authorisation
rule. This is message dependent.isAllowed - If the rule should allow or deny access.public SimpleAuthorisationService.Builder addGeneralRule(int protocolId, int actionId, boolean isAllowed)
protocolId - sbe:messageSchema@id value that the rule applies to.actionId - sbe:message@id value that the rule applies to.isAllowed - If the rule should allow or deny access.public SimpleAuthorisationService.Builder addGeneralRule(int protocolId, boolean isAllowed)
protocolId - sbe:messageSchema@id value that the rule applies to.isAllowed - If the rule should allow or deny access.public SimpleAuthorisationService newInstance()
Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.