public class SimpleSecurityManager extends java.lang.Object implements SecurityManager
| Constructor and Description |
|---|
SimpleSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
authenticate(java.util.Properties credentials)
Verify the credentials provided in the properties
Your security manager needs to validate credentials coming from all communication channels.
|
boolean |
authorize(java.lang.Object principal,
ResourcePermission permission)
Authorize the ResourcePermission for a given Principal
|
void |
close()
Close any resources used by the SecurityManager, called when a cache is closed.
|
void |
init(java.util.Properties securityProps)
Initialize the SecurityManager.
|
public void init(java.util.Properties securityProps)
SecurityManagerinit in interface SecurityManagersecurityProps - the security properties obtained using a call to
DistributedSystem.getSecurityProperties()public java.lang.Object authenticate(java.util.Properties credentials)
throws AuthenticationFailedException
SecurityManagerauthenticate in interface SecurityManagercredentials - it contains the security-username and security-password as keys of the
properties, also the properties generated by your AuthInitialize interfaceAuthenticationFailedExceptionpublic boolean authorize(java.lang.Object principal,
ResourcePermission permission)
SecurityManagerauthorize in interface SecurityManagerprincipal - The principal that's requesting the permissionpermission - The permission requestedpublic void close()
SecurityManagerclose in interface SecurityManager