/** * Perform a permission check. * * @param perm the permission to check * @param context the security context to use for the check (must be an {@link AccessControlContext} instance) * @throws SecurityException if the check fails */ public void checkPermission(final Permission perm, final Object context) throws SecurityException { if (context instanceof AccessControlContext) { checkPermission(perm, (AccessControlContext) context); } else { throw access.unknownContext(); } }
/** * Perform a permission check. * * @param perm the permission to check * @param context the security context to use for the check (must be an {@link AccessControlContext} instance) * @throws SecurityException if the check fails */ public void checkPermission(final Permission perm, final Object context) throws SecurityException { if (context instanceof AccessControlContext) { checkPermission(perm, (AccessControlContext) context); } else { throw access.unknownContext(); } }
/** * Perform a permission check. * * @param perm the permission to check * @param context the security context to use for the check (must be an {@link AccessControlContext} instance) * @throws SecurityException if the check fails */ public void checkPermission(final Permission perm, final Object context) throws SecurityException { if (context instanceof AccessControlContext) { checkPermission(perm, (AccessControlContext) context); } else { throw access.unknownContext(); } }
/** * Perform a permission check. * * @param perm the permission to check * @param context the security context to use for the check (must be an {@link AccessControlContext} instance) * @throws SecurityException if the check fails */ public void checkPermission(final Permission perm, final Object context) throws SecurityException { if (context instanceof AccessControlContext) { checkPermission(perm, (AccessControlContext) context); } else { throw access.unknownContext(); } }
/** * Perform a permission check. * * @param perm the permission to check * @param context the security context to use for the check (must be an {@link AccessControlContext} instance) * @throws SecurityException if the check fails */ public void checkPermission(final Permission perm, final Object context) throws SecurityException { if (context instanceof AccessControlContext) { checkPermission(perm, (AccessControlContext) context); } else { throw access.unknownContext(); } }