Interface PermissionBasedAccessController
- All Superinterfaces:
AccessController
- All Known Implementing Classes:
ConfigurationSourcePermissionBasedAccessController
An access controller that uses permissions to control the access to services or resources based on the permissions that were granted to an authenticated entity.
This access controller is able to determine whether an authenticated entity has a particular set of permissions in a particular application context.
The following code shows how to determine whether permission print
has been granted:
PermissionBasedAccessController accessController = ...
accessController.hasPermission("print").doOnNext(granted -> {...})...
Permissions can be parameterized in order to control the access to a service or a resouce based on a particular context. For instance, if a printing application wants to control access to printers based on the their names or a user's location, permissions can be checked by defining these as parameters as follows:
PermissionBasedAccessController accessController = ...
accessController.hasPermission("print", "name", "lp1200", "location", "desk_1234").doOnNext(granted -> {...})...
The priority given to parameters and defaulting support when evaluating permissions is implementation specific.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A parameter is used to specify the context in which a permission is evaluated. -
Method Summary
Modifier and TypeMethodDescriptionhasAllPermissions
(Set<String> permissions, PermissionBasedAccessController.Parameter... parameters) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameter.Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9, String k10, String v10) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAllPermissions
(Set<String> permissions, List<PermissionBasedAccessController.Parameter> parameters) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, PermissionBasedAccessController.Parameter... parameters) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameter.Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9, String k10, String v10) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasAnyPermission
(Set<String> permissions, List<PermissionBasedAccessController.Parameter> parameters) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, PermissionBasedAccessController.Parameter... parameters) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameter.Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9, String k10, String v10) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.hasPermission
(String permission, List<PermissionBasedAccessController.Parameter> parameters) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
-
Method Details
-
hasPermission
Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameter.
- Parameters:
permission
- the permission to evaluatek1
- the parameter keyv1
- the parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter valuek9
- the ninth parameter keyv9
- the ninth parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9, String k10, String v10) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter valuek9
- the ninth parameter keyv9
- the ninth parameter valuek10
- the tenth parameter keyv10
- the tenth parameter value- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
default Mono<Boolean> hasPermission(String permission, PermissionBasedAccessController.Parameter... parameters) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluateparameters
- an array of parameters- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasPermission
Mono<Boolean> hasPermission(String permission, List<PermissionBasedAccessController.Parameter> parameters) Determines whether the authenticated entity has the specified permissions in the context defined by the specified parameters.
- Parameters:
permission
- the permission to evaluateparameters
- a list of parameters- Returns:
- a mono emitting true if the permission is granted, false otherwise
-
hasAnyPermission
Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameter.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the parameter keyv1
- the parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter valuek9
- the ninth parameter keyv9
- the ninth parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9, String k10, String v10) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter valuek9
- the ninth parameter keyv9
- the ninth parameter valuek10
- the tenth parameter keyv10
- the tenth parameter value- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
default Mono<Boolean> hasAnyPermission(Set<String> permissions, PermissionBasedAccessController.Parameter... parameters) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluateparameters
- an array of parameters- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAnyPermission
Mono<Boolean> hasAnyPermission(Set<String> permissions, List<PermissionBasedAccessController.Parameter> parameters) Determines whether the authenticated entity has any of the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluateparameters
- a list of parameters- Returns:
- a mono emitting true if a permission is granted, false otherwise
-
hasAllPermissions
Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameter.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the parameter keyv1
- the parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter valuek9
- the ninth parameter keyv9
- the ninth parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, String k1, String v1, String k2, String v2, String k3, String v3, String k4, String v4, String k5, String v5, String k6, String v6, String k7, String v7, String k8, String v8, String k9, String v9, String k10, String v10) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluatek1
- the first parameter keyv1
- the first parameter valuek2
- the second parameter keyv2
- the second parameter valuek3
- the third parameter keyv3
- the third parameter valuek4
- the fourth parameter keyv4
- the fourth parameter valuek5
- the fifth parameter keyv5
- the fifth parameter valuek6
- the sixth parameter keyv6
- the sixth parameter valuek7
- the seventh parameter keyv7
- the seventh parameter valuek8
- the eigth parameter keyv8
- the eigth parameter valuek9
- the ninth parameter keyv9
- the ninth parameter valuek10
- the tenth parameter keyv10
- the tenth parameter value- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
default Mono<Boolean> hasAllPermissions(Set<String> permissions, PermissionBasedAccessController.Parameter... parameters) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluateparameters
- an array of parameters- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-
hasAllPermissions
Mono<Boolean> hasAllPermissions(Set<String> permissions, List<PermissionBasedAccessController.Parameter> parameters) Determines whether the authenticated entity has all the specified permissions in the context defined by the specified parameters.
- Parameters:
permissions
- the set of permissions to evaluateparameters
- a list of parameters- Returns:
- a mono emitting true if all permissions are granted, false otherwise
-