public class JAASPnutsImpl extends SecurePnutsImpl
e.g. context.setImplementation(new JAASPnutsImpl(context.Implementation(), codesource, subject))
Runtime.Accessor, Runtime.Break, Runtime.Continue, Runtime.FunctionSerializer, Runtime.TypeMap
properties
BOOLEAN_SYMBOL, BYTE_SYMBOL, CHAR_SYMBOL, CLONE, DOUBLE_SYMBOL, EXCEPTOIN_FIELD_SYMBOL, FLOAT_SYMBOL, INT_SYMBOL, LONG_SYMBOL, SHORT_SYMBOL, VOID_SYMBOL
Constructor and Description |
---|
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)
|
Modifier and Type | Method and Description |
---|---|
protected java.security.PermissionCollection |
getPermissions(java.security.CodeSource codesource)
Returns permissions from policy file, plus Applet's sand-box permissions.
|
java.lang.String |
toString() |
accept, addSandBoxPermissions, eval, getPolicyPermissions, load, load, loadFile
getBaseImpl
getDefault, popFile, provide, pushFile, queryProperty, revoke, setProperties, setProperty
_callConstructor, _callMethod, add, add, add1, add1, addImport, addStaticMembers, and, and, applyGenerator, arraydim, arrayType, call, call, callConstructor, callFunction, callMethod, cast, catchException, checkException, checkException, compareObjects, compareTo, compareTo, createList, createMap, defineTopLevelFunction, defineUnboundFunction, divide, divide, eq, eq, escape, exec, execute, fileToURL, findCallableMethod, format, format, ge, ge, getArrayLength, getBeanProperty, getBeanProperty, getBeanProperty, getBeanPropertyType, getBeginColumn, getBeginLine, getBottomType, getCompiledScript, getConstructors, getElement, getElementAt, getEndLine, getField, getField, getFunction, getFunction, getFunctions, getMessage, getMethods, getProperty, getRange, getRuntime, getScriptReader, getScriptSource, getScriptURL, getStaticField, getThreadContext, gt, gt, isArray, isGenerator, jump, le, le, loadNode, lt, lt, makeArray, matchType, mod, mod, multiply, multiply, ne, ne, negate, negate, newInstance, not, not, or, or, parseChar, parseFloat, parseInt, parseString, primitive, printError, putField, putStaticField, quantity, replaceChar, run, saveNode, setBeanProperty, setBeanProperty, setBeanProperty, setElement, setExitHook, setLine, setLine, setPackage, setRange, setThreadContext, shiftArithmetic, shiftArithmetic, shiftLeft, shiftLeft, shiftRight, shiftRight, subtract, subtract, subtract1, subtract1, throwException, toBoolean, toEnumeration, transform, transform, unparse, xor, xor
public JAASPnutsImpl(PnutsImpl impl)
impl
- a PnutsImpl objectpublic JAASPnutsImpl(Implementation impl)
impl
- a Implementation objectpublic 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 Subjectpublic 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 Subjectprotected java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
SecurePnutsImpl
getPermissions
in class SecurePnutsImpl
codesource
- the CodeSource of the scriptpublic java.lang.String toString()
toString
in class SecurePnutsImpl