public class ClientPermissionChecker extends Object implements ClientSubjectChecker
ClientSubjectCheckerthat approves or rejects client subjects based on whether or not they have been granted a particular permission.
|Constructor and Description|
Creates instance that checks if client subjects have been granted the specified permission.
|Modifier and Type||Method and Description|
Checks whether or not to permit exchanging or accepting data with/from a client authenticated as the given subject, by testing if the subject has been granted the permission that this instance was constructed with.
public void checkClientSubject(Subject subject)
ProtectionDomainis constructed with an empty
nulllocation and certificates),
nullclass loader, and the principals from the given client subject (if any), and the
impliesmethod of that protection domain is invoked with the specified permission. If
trueis returned, this method returns normally, otherwise a
SecurityExceptionis thrown. If no security manager is installed, this method returns normally. The given client subject must be read-only if non-
Copyright © GigaSpaces.