public class SpySecurityManager extends SimpleTestSecurityManager
Constructor and Description |
---|
SpySecurityManager() |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getCloseInvocationCount() |
int |
getInitInvocationCount() |
void |
init(java.util.Properties securityProps)
Initialize the SecurityManager.
|
authenticate
public void init(java.util.Properties securityProps)
SecurityManager
init
in interface SecurityManager
init
in class SimpleTestSecurityManager
securityProps
- the security properties obtained using a call to
DistributedSystem.getSecurityProperties()
public boolean authorize(java.lang.Object principal, ResourcePermission permission)
SecurityManager
authorize
in interface SecurityManager
authorize
in class SimpleTestSecurityManager
principal
- The principal that's requesting the permissionpermission
- The permission requestedpublic void close()
SecurityManager
close
in interface SecurityManager
close
in class SimpleTestSecurityManager
public int getInitInvocationCount()
public int getCloseInvocationCount()