Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
added PermissionCheck interface with placeholder KeywhizPrincipal int…
Browse files Browse the repository at this point in the history
…erface
  • Loading branch information
violetd12 committed Apr 19, 2022
1 parent 16bf758 commit 54c3fc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
@@ -0,0 +1,4 @@
package keywhiz.service.permissions;

public interface KeywhizPrincipal {
}
@@ -0,0 +1,6 @@
package keywhiz.service.permissions;

public interface PermissionCheck {
boolean isAllowed(KeywhizPrincipal source, String action, Object target);
void checkAllowedOrThrow(KeywhizPrincipal source, String action, Object target);
}

0 comments on commit 54c3fc4

Please sign in to comment.