|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpnuts.lang.Runtime
pnuts.lang.PnutsImpl
pnuts.ext.ImplementationAdapter
pnuts.security.SecurePnutsImpl
pnuts.security.JAASPnutsImpl
public class JAASPnutsImpl
A SecurePnutsImpl subclass that executes scripts with permissions constructed from codesource-based policy and subject-based policy.
e.g. context.setImplementation(new JAASPnutsImpl(context.Implementation(), codesource, subject))
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class pnuts.lang.Runtime |
|---|
Runtime.Accessor, Runtime.Break, Runtime.Continue, Runtime.FunctionSerializer, Runtime.TypeMap |
| Field Summary |
|---|
| Fields inherited from class pnuts.lang.PnutsImpl |
|---|
properties |
| Fields inherited from class pnuts.lang.Runtime |
|---|
BOOLEAN_SYMBOL, BYTE_SYMBOL, CHAR_SYMBOL, CLONE, DOUBLE_SYMBOL, EXCEPTOIN_FIELD_SYMBOL, FLOAT_SYMBOL, INT_SYMBOL, LONG_SYMBOL, SHORT_SYMBOL, VOID_SYMBOL |
| Constructor Summary | |
|---|---|
JAASPnutsImpl(Implementation impl)
A Constructor |
|
JAASPnutsImpl(Implementation impl,
java.security.CodeSource codeSource)
A Constructor |
|
JAASPnutsImpl(Implementation impl,
java.security.CodeSource codeSource,
javax.security.auth.Subject subject)
A Constructor |
|
JAASPnutsImpl(PnutsImpl impl)
Deprecated. replaced by JAASPnutsImpl(Implementation) |
|
JAASPnutsImpl(PnutsImpl impl,
java.security.CodeSource codeSource)
Deprecated. replaced byte JAASPnutsImpl(Implementation, CodeSource) |
|
JAASPnutsImpl(PnutsImpl impl,
java.security.CodeSource codeSource,
javax.security.auth.Subject subject)
Deprecated. replaced by JAASPnutsImpl(Implementation, CodeSource, Subject) |
|
| Method Summary | |
|---|---|
protected java.security.PermissionCollection |
getPermissions(java.security.CodeSource codesource)
Returns permissions from policy file, plus Applet's sand-box permissions. |
java.lang.String |
toString()
|
| Methods inherited from class pnuts.security.SecurePnutsImpl |
|---|
accept, addSandBoxPermissions, eval, getPolicyPermissions, load, load, loadFile |
| Methods inherited from class pnuts.ext.ImplementationAdapter |
|---|
getBaseImpl |
| Methods inherited from class pnuts.lang.PnutsImpl |
|---|
getDefault, popFile, provide, pushFile, queryProperty, revoke, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JAASPnutsImpl(PnutsImpl impl)
impl - a PnutsImpl objectpublic JAASPnutsImpl(Implementation impl)
impl - a Implementation object
public JAASPnutsImpl(PnutsImpl impl,
java.security.CodeSource codeSource)
impl - the base implementationcodeSource - a CodeSource object which indicates the source of the expression
execute by eval(String, Context).
public JAASPnutsImpl(Implementation impl,
java.security.CodeSource codeSource)
impl - the base implementationcodeSource - a CodeSource object which indicates the source of the expression
execute by eval(String, Context).
public JAASPnutsImpl(PnutsImpl impl,
java.security.CodeSource codeSource,
javax.security.auth.Subject subject)
impl - the base implementationcodeSource - a CodeSource object which indicates the source of the expression
execute by eval(String, Context).subject - a Subject
public JAASPnutsImpl(Implementation impl,
java.security.CodeSource codeSource,
javax.security.auth.Subject subject)
impl - the base implementationcodeSource - a CodeSource object which indicates the source of the expression
execute by eval(String, Context).subject - a Subject| Method Detail |
|---|
protected java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
SecurePnutsImpl
getPermissions in class SecurePnutsImplcodesource - the CodeSource of the script
public java.lang.String toString()
toString in class SecurePnutsImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||