Index
All Classes and Interfaces|All Packages
A
- activate(Controller) - Static method in class org.cojen.boxtin.SecurityAgent
-
Activate the security agent if not already done so.
- allow() - Static method in class org.cojen.boxtin.Rule
-
Returns a singleton rule which is always allowed.
- allowAll() - Method in class org.cojen.boxtin.RulesBuilder
-
Allow access to all packages, superseding all previous rules.
- allowAll() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Allow access to all constructors and locally declared methods, superseding all previous rules.
- allowAll() - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
Allow access to all packages, superseding all previous rules.
- allowAll() - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
Allow access to all classes, superseding all previous rules.
- allowAllConstructors() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Allow access to all constructors, superseding all previous rules.
- allowAllMethods() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Allow access to all locally declared methods, superseding all previous rules.
- allowMethod(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Allow access to all variants of the given method, superseding all previous rules.
- allowVariant(Class<?>...) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Allow access to a specific variant of the current constructor or method, superseding all previous rules.
- allowVariant(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Allow access to a specific variant of the current constructor or method, superseding all previous rules.
- applyAllowRules(RulesApplier) - Method in class org.cojen.boxtin.RulesBuilder
-
Applies only the allow rules from the given applier to this builder.
- applyDenyRules(RulesApplier) - Method in class org.cojen.boxtin.RulesBuilder
-
Applies only the deny rules from the given applier to this builder.
- applyRules(RulesApplier) - Method in class org.cojen.boxtin.RulesBuilder
-
Applies all the rules from the given applier to this builder.
- applyRulesTo(RulesBuilder) - Method in interface org.cojen.boxtin.RulesApplier
-
Applies a set of rules to the given builder.
B
- build() - Method in class org.cojen.boxtin.RulesBuilder
-
Returns an immutable set of rules based on what's been defined so far.
C
- Caller - Class in org.cojen.boxtin
- check(MethodHandleInfo) - Method in class org.cojen.boxtin.DenyAction
-
Returns this deny action but with a predicate check to determine if the operation should actually be allowed.
- checkReflection() - Static method in interface org.cojen.boxtin.RulesApplier
-
Returns an applier which allows reflection operations, but they are checked to ensure that the corresponding constructor or method is allowed by the other rules.
- Controller - Interface in org.cojen.boxtin
-
Decides what set of operations should be allowed or denied based on the caller's
Module
. - custom(MethodHandleInfo) - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which performs a custom operation.
D
- denialsForMethod(CharSequence, CharSequence) - Method in interface org.cojen.boxtin.Rules
-
For the given method name and descriptor, return a map of classes which have an explicit deny rule against a matching method.
- deny() - Static method in class org.cojen.boxtin.Rule
-
Returns a singleton rule which is always denied, with the
standard
action. - deny(DenyAction) - Static method in class org.cojen.boxtin.Rule
-
Returns a rule which is denied with the given action.
- denyAction() - Method in class org.cojen.boxtin.Rule
-
Returns the deny action for this rule, which is null if the rule isn't denied.
- DenyAction - Class in org.cojen.boxtin
-
Specifies the action to take when access to an operation is denied.
- denyAll() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all constructors and locally declared methods, superseding all previous rules.
- denyAll() - Method in class org.cojen.boxtin.RulesBuilder
-
Deny access to all packages, superseding all previous rules.
- denyAll() - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
Deny access to all packages, superseding all previous rules.
- denyAll() - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
Deny access to all classes, superseding all previous rules.
- denyAll(DenyAction) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all constructors and locally declared methods, superseding all previous rules.
- denyAll(DenyAction) - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
Deny access to all packages, superseding all previous rules.
- denyAll(DenyAction) - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
Deny access to all classes, superseding all previous rules.
- denyAllConstructors() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all constructors, superseding all previous rules.
- denyAllConstructors(DenyAction) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all constructors, superseding all previous rules.
- denyAllMethods() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all locally declared methods, superseding all previous rules.
- denyAllMethods(DenyAction) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all locally declared methods, superseding all previous rules.
- denyMethod(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all variants of the given method, superseding all previous rules.
- denyMethod(DenyAction, String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to all variants of the given method, superseding all previous rules.
- denyVariant(Class<?>...) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to a specific variant of the current constructor or method, superseding all previous rules.
- denyVariant(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to a specific variant of the current constructor or method, superseding all previous rules.
- denyVariant(DenyAction, Class<?>...) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to a specific variant of the current constructor or method, superseding all previous rules.
- denyVariant(DenyAction, String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
Deny access to a specific variant of the current constructor or method, superseding all previous rules.
E
- empty() - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which returns an empty instance.
- end() - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
End the current rules for this class and return to the package scope.
- end() - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
End the current rules for this module and return to the outermost scope.
- end() - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
End the current rules for this package and return to the module scope.
- exception(Class<?>) - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which throws an exception without a message.
- exception(Class<?>, String) - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which throws an exception with an optional message.
- exception(String) - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which throws an exception without a message.
- exception(String, String) - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which throws an exception with an optional message.
F
- forClass(Class<?>) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
End the current rules for this class and begin a new class scope.
- forClass(Class<?>) - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
Define specific rules against the given class, which can supersede all previous rules.
- forClass(Module, CharSequence, CharSequence) - Method in interface org.cojen.boxtin.Rules
-
Returns the rules for a specific target class, as specified by its package name and class name.
- forClass(Module, Class<?>) - Method in interface org.cojen.boxtin.Rules
-
Returns the rules for a specific target class.
- forClass(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
End the current rules for this class and begin a new class scope.
- forClass(String) - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
Define specific rules against the given class, which can supersede all previous rules.
- forModule(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
End the current rules for this class, package and module, and begin a new module scope.
- forModule(String) - Method in class org.cojen.boxtin.RulesBuilder
-
Define specific rules against the given module, which can supersede all previous rules.
- forModule(String) - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
End the current rules for this module and begin a new module scope.
- forModule(String) - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
End the current rules for this package and module, and begin a new module scope.
- forModule(String, String, String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
End the current rules for this class, package and module, and begin a new module scope.
- forModule(String, String, String) - Method in class org.cojen.boxtin.RulesBuilder
-
Define specific rules against the given module, which can supersede all previous rules.
- forModule(String, String, String) - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
End the current rules for this module and begin a new module scope.
- forModule(String, String, String) - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
End the current rules for this package and module, and begin a new module scope.
- forPackage(String) - Method in class org.cojen.boxtin.RulesBuilder.ClassScope
-
End the current rules for this class and package, and begin a new package scope.
- forPackage(String) - Method in class org.cojen.boxtin.RulesBuilder.ModuleScope
-
Define specific rules against the given package, which can supersede all previous rules.
- forPackage(String) - Method in class org.cojen.boxtin.RulesBuilder.PackageScope
-
End the current rules for this package and begin a new package scope.
H
- hashCode() - Method in class org.cojen.boxtin.Rule
I
- isActivated() - Static method in class org.cojen.boxtin.SecurityAgent
-
Returns true if a call to
activate
succeeded. - isAllowed() - Method in class org.cojen.boxtin.Rule
-
Returns true if the rule is always allowed.
- isAnyDenied() - Method in class org.cojen.boxtin.Rule
-
Same as
Rule.isDenied()
. - isAnyDenied() - Method in interface org.cojen.boxtin.Rules.ForClass
-
Returns true if any operations are denied.
- isConstructionDenied() - Method in class org.cojen.boxtin.Rule
-
Same as
Rule.isDenied()
. - isConstructionDenied() - Method in interface org.cojen.boxtin.Rules.ForClass
-
Returns true if all constructors are denied.
- isDenied() - Method in class org.cojen.boxtin.Rule
-
Returns true if the rule is always denied.
J
- java_base() - Static method in interface org.cojen.boxtin.RulesApplier
-
Returns an applier of rules for the java.base module, which denies operations that are considered harmful.
M
- moduleLayer() - Method in interface org.cojen.boxtin.Rules
-
Returns the
ModuleLayer
that these rules apply to, which is applicable to the target classes. - moduleLayer() - Method in class org.cojen.boxtin.RulesBuilder
-
Returns the
ModuleLayer
used by this builder.
O
- org.cojen.boxtin - module org.cojen.boxtin
-
Boxtin is a Java security manager agent.
- org.cojen.boxtin - package org.cojen.boxtin
R
- Rule - Class in org.cojen.boxtin
-
Indicates if access to an operation is allowed or denied.
- ruleForConstructor(CharSequence) - Method in class org.cojen.boxtin.Rule
-
Returns
this
. - ruleForConstructor(CharSequence) - Method in interface org.cojen.boxtin.Rules.ForClass
-
Returns the rule for a specific constructor, as specified by its descriptor.
- ruleForConstructor(Class<?>...) - Method in class org.cojen.boxtin.Rule
-
Returns
this
. - ruleForConstructor(Class<?>...) - Method in interface org.cojen.boxtin.Rules.ForClass
-
Returns the rule for a specific constructor, as specified by its parameters.
- ruleForMethod(CharSequence, CharSequence) - Method in class org.cojen.boxtin.Rule
-
Returns
this
. - ruleForMethod(CharSequence, CharSequence) - Method in interface org.cojen.boxtin.Rules.ForClass
-
Returns the rule for a specific method, as specified by its name and descriptor.
- ruleForMethod(CharSequence, Class<?>...) - Method in class org.cojen.boxtin.Rule
-
Returns
this
. - ruleForMethod(CharSequence, Class<?>...) - Method in interface org.cojen.boxtin.Rules.ForClass
-
Returns the rule for a specific method, as specified by its name and parameters.
- Rules - Interface in org.cojen.boxtin
-
Checks if access to a class member is allowed or denied, defined by a set of rules, built using a
RulesBuilder
. - Rules.ForClass - Interface in org.cojen.boxtin
-
Checks access to constructors or methods, for a specific class.
- RulesApplier - Interface in org.cojen.boxtin
-
Defines and applies common sets of rules.
- RulesBuilder - Class in org.cojen.boxtin
- RulesBuilder() - Constructor for class org.cojen.boxtin.RulesBuilder
-
Construct an instance which uses the boot module layer for discovering modules, packages, and classes.
- RulesBuilder(ModuleLayer) - Constructor for class org.cojen.boxtin.RulesBuilder
-
Construct an instance which uses the given module layer for discovering modules, packages, and classes.
- RulesBuilder.ClassScope - Class in org.cojen.boxtin
-
Builder of rules at the class level.
- RulesBuilder.ModuleScope - Class in org.cojen.boxtin
-
Builder of rules at the module level.
- RulesBuilder.PackageScope - Class in org.cojen.boxtin
-
Builder of rules at the package level.
- rulesForCaller(Module) - Method in interface org.cojen.boxtin.Controller
-
Returns rules which determine if a calling module is allowed to perform an operation.
S
- SecurityAgent - Class in org.cojen.boxtin
-
The
SecurityAgent
is an instrumentation agent which transforms classes such that access checks are enforced. - standard() - Static method in class org.cojen.boxtin.DenyAction
-
Returns the standard deny action, which throws a
SecurityException
without a message.
T
- toString() - Method in class org.cojen.boxtin.Rule
V
- validate() - Method in class org.cojen.boxtin.Caller
-
Custom and checked deny actions must invoke this method to validate this instance and to obtain the actual caller class.
- validate() - Method in class org.cojen.boxtin.RulesBuilder
-
Validates that all classes are loadable, and that all class members are found.
- validate(Consumer<String>) - Method in class org.cojen.boxtin.RulesBuilder
-
Validates that all classes are loadable, and that all class members are found.
- value(Object) - Static method in class org.cojen.boxtin.DenyAction
-
Returns a deny action which returns a specific value, possibly null.
All Classes and Interfaces|All Packages