示例#1
0
 /** {@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);
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 /**
  * 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);
 }
示例#4
0
 /** {@inheritDoc} */
 public boolean check(Restrictor restrictor, Object... args) {
   return restrictor.isTypeAllowed((RequestType) args[0]);
 }
示例#5
0
 /** {@inheritDoc} */
 public boolean check(Restrictor restrictor, Object... args) {
   return restrictor.isHttpMethodAllowed((HttpMethod) args[0]);
 }
示例#6
0
 /** {@inheritDoc} */
 public boolean check(Restrictor restrictor, Object... args) {
   return restrictor.isOriginAllowed((String) args[0], (Boolean) args[1]);
 }
示例#7
0
 /** {@inheritDoc} */
 public boolean check(Restrictor restrictor, Object... args) {
   return restrictor.isOperationAllowed((ObjectName) args[0], (String) args[1]);
 }
示例#8
0
 /** {@inheritDoc} */
 public boolean check(Restrictor restrictor, Object... args) {
   return restrictor.isAttributeWriteAllowed((ObjectName) args[0], (String) args[1]);
 }