public interface SecurityManager
Modifier and Type | Method and Description |
---|---|
Object |
authenticate(Properties credentials)
Verify the credentials provided in the properties
Your security manager needs to validate credentials coming from all communication channels.
|
default boolean |
authorize(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(Properties securityProps)
Initialize the SecurityManager.
|
default void init(Properties securityProps)
securityProps
- the security properties obtained using a call to
DistributedSystem.getSecurityProperties()
AuthenticationFailedException
- if some exception occurs during the initializationObject authenticate(Properties credentials) throws AuthenticationFailedException
credentials
- it contains the security-username and security-password as keys of the
properties, also the properties generated by your AuthInitialize interfaceAuthenticationFailedException
default boolean authorize(Object principal, ResourcePermission permission)
principal
- The principal that's requesting the permissionpermission
- The permission requesteddefault void close()