public interface SecurityManager
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
authenticate(java.util.Properties credentials)
Verify the credentials provided in the properties
|
default boolean |
authorize(java.lang.Object principal,
ResourcePermission permission)
Authorize the ResourcePermission for a given Principal
|
default void |
close()
Close any resources used by the SecurityManager, called when a cache is closed.
|
default void |
init(java.util.Properties securityProps)
Initialize the SecurityManager.
|
default void init(java.util.Properties securityProps)
securityProps - the security properties obtained using a call to
DistributedSystem.getSecurityProperties()AuthenticationFailedException - if some exception occurs during the initializationjava.lang.Object authenticate(java.util.Properties credentials)
throws AuthenticationFailedException
credentials - it contains the security-username and security-password as keys of the propertiesAuthenticationFailedExceptiondefault boolean authorize(java.lang.Object principal,
ResourcePermission permission)
principal - The principal that's requesting the permissionpermission - The permission requesteddefault void close()