Package java.security
Interface Guard
- All Known Implementing Classes:
AllPermission,AuthPermission,BasicPermission,FilePermission,LoggingPermission,NetPermission,Permission,PrivateCredentialPermission,PropertyPermission,ProviderConfigurationPermission,ReflectPermission,RuntimePermission,SecurityPermission,SerializablePermission,SocketPermission,SQLPermission,SSLPermission,UnresolvedPermission
public interface Guard
Guard implementors protect access to other objects.-
Method Summary
Modifier and Type Method Description voidcheckGuard(Object object)Checks whether access to the specifiedObjectshould be granted.
-
Method Details
-
checkGuard
Checks whether access to the specifiedObjectshould be granted. This method returns silently if access is granted, otherwise aSecurityExceptionis thrown.- Parameters:
object- the object to be protected by thisGuard.- Throws:
SecurityException- if access is not granted.
-