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