Sha256: fbee5e5a00837bacf17932930ff57f42e6dc1667a7845c57a33d9c7fbebfed92

Contents?: true

Size: 488 Bytes

Versions: 152

Compression:

Stored size: 488 Bytes

Contents

package thread_safe;

import java.security.Permission;
import java.util.ArrayList;
import java.util.List;

public class SecurityManager extends java.lang.SecurityManager {
  private final List<Permission> deniedPermissions =
      new ArrayList<Permission>();

  @Override
  public void checkPermission(Permission p) {
    if (deniedPermissions.contains(p)) {
      throw new SecurityException("Denied!");
    }
  }

  public void deny(Permission p) {
    deniedPermissions.add(p);
  }
}

Version data entries

152 entries across 144 versions & 47 rubygems

Version Path
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
spiral_form-0.1.1 vendor/bundle/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
spiral_form-0.1.0 vendor/bundle/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java