Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,12 @@ public abstract void checkPermission(String fsOwner, String supergroup,
* operation.
* @throws AccessControlException
*/
void checkPermissionWithContext(AuthorizationContext authzContext)
throws AccessControlException;
default void checkPermissionWithContext(AuthorizationContext authzContext)
throws AccessControlException {
throw new AccessControlException("The authorization provider does not "
+ "implement the checkPermissionWithContext(AuthorizationContext) "
+ "API.");
}
}
/**
* Initialize the provider. This method is called at NameNode startup
Expand Down