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
    void checkGuard​(Object object)
    Checks whether access to the specified Object should be granted.
  • Method Details

    • checkGuard

      void checkGuard​(Object object) throws SecurityException
      Checks whether access to the specified Object should be granted. This method returns silently if access is granted, otherwise a SecurityException is thrown.
      Parameters:
      object - the object to be protected by this Guard.
      Throws:
      SecurityException - if access is not granted.