public interface Guard
Guard
implementors protect access to other objects.Modifier and Type | Method and Description |
---|---|
void |
checkGuard(Object object)
Checks whether access to the specified
Object should be granted. |
void checkGuard(Object object) throws SecurityException
Object
should be granted.
This method returns silently if access is granted, otherwise a SecurityException
is thrown.object
- the object to be protected by this Guard
.SecurityException
- if access is not granted.