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
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/spec/src/thread_safe/SecurityManager.java