Lines Matching refs:context
178 * Checks whether the specified security context is allowed to establish
186 * @param context
187 * the security context to use for the check.
191 * if {@code context} is not allowed to connect to {@code host}
194 public void checkConnect(String host, int port, Object context) {
202 context);
204 checkPermission(new SocketPermission(host, "resolve"), context); //$NON-NLS-1$
497 * Checks whether the given security context is allowed to read from the
502 * @param context
503 * the security context to use for the check.
505 * if {@code context} is not allowed to read from {@code file}.
507 public void checkRead(String file, Object context) {
508 checkPermission(new FilePermission(file, "read"), context); //$NON-NLS-1$
882 * Checks whether the specified security context is allowed to access the
887 * @param context
888 * the security context for which to check permission.
890 * if {@code context} is not an instance of {@code
892 * is denied for {@code context} according to the current
895 public void checkPermission(Permission permission, Object context) {
901 if (context instanceof AccessControlContext) {
902 ((AccessControlContext) context).checkPermission(permission);