/** {@inheritDoc} */ public boolean check(Restrictor restrictor, Object... args) { String[] argsS = new String[args.length]; for (int i = 0; i < args.length; i++) { argsS[i] = (String) args[i]; } return restrictor.isRemoteAccessAllowed(argsS); }
/** * Check whether CORS access is allowed for the given origin. * * @param pOrigin origin URL which needs to be checked * @return true if icors access is allowed */ public boolean isCorsAccessAllowed(String pOrigin) { return restrictor.isCorsAccessAllowed(pOrigin); }
/** * Check whether remote access from the given client is allowed. * * @param pRemoteHost remote host to check against * @param pRemoteAddr alternative IP address * @return true if remote access is allowed */ public boolean isRemoteAccessAllowed(String pRemoteHost, String pRemoteAddr) { return restrictor.isRemoteAccessAllowed(pRemoteHost, pRemoteAddr); }
/** {@inheritDoc} */ public boolean check(Restrictor restrictor, Object... args) { return restrictor.isTypeAllowed((RequestType) args[0]); }
/** {@inheritDoc} */ public boolean check(Restrictor restrictor, Object... args) { return restrictor.isHttpMethodAllowed((HttpMethod) args[0]); }
/** {@inheritDoc} */ public boolean check(Restrictor restrictor, Object... args) { return restrictor.isOriginAllowed((String) args[0], (Boolean) args[1]); }
/** {@inheritDoc} */ public boolean check(Restrictor restrictor, Object... args) { return restrictor.isOperationAllowed((ObjectName) args[0], (String) args[1]); }
/** {@inheritDoc} */ public boolean check(Restrictor restrictor, Object... args) { return restrictor.isAttributeWriteAllowed((ObjectName) args[0], (String) args[1]); }