abakt-test
Toggle table of contents
1.0.0
jvm
Platform filter
jvm
Switch theme
abakt-test
abakt-test
abakt.
test
Auth
Policy
Principal
Test
Auth
Policy
Resource
Test
Resource
Policy
Principal
Test
Resource
Policy
Resource
Test
should
Allow()
should
Deny()
should
Not
Allow()
with
Principal()
with
Resource()
abakt-test
/
abakt.test
/
AuthPolicyResourceTest
Auth
Policy
Resource
Test
class
AuthPolicyResourceTest
<
Principal
:
Any
,
Resource
:
Any
>
(
policy
:
AuthorizationPolicy
<
Principal
>
,
resource
:
Resource
)
Members
Constructors
Auth
Policy
Resource
Test
Link copied to clipboard
constructor
(
policy
:
AuthorizationPolicy
<
Principal
>
,
resource
:
Resource
)
Functions
should
Be
Allowed
Link copied to clipboard
infix
fun
Principal
.
shouldBeAllowed
(
action
:
ResourceAction
<
Resource
>
)
should
Be
Denied
Link copied to clipboard
infix
fun
Principal
.
shouldBeDenied
(
action
:
ResourceAction
<
Resource
>
)
should
Not
Be
Allowed
Link copied to clipboard
infix
fun
Principal
.
shouldNotBeAllowed
(
action
:
ResourceAction
<
Resource
>
)