A B C D E G L M N P R S T

A

AbstractParseListener - Class in net.sf.container.imp
Skeleton of policy file parse listener.
AbstractParseListener() - Constructor for class net.sf.container.imp.AbstractParseListener
 
AbstractParseListener.GrantEntry - Class in net.sf.container.imp
grant entry : temporary data object used to store grant information during the parsing process created on August 8, 2005
AbstractParseListener.GrantEntry(CodeSource, Permissions) - Constructor for class net.sf.container.imp.AbstractParseListener.GrantEntry
 
AbstractPolicyFactory - Class in net.sf.container.imp
Default implementation of ContainerFactory.
AbstractPolicyFactory() - Constructor for class net.sf.container.imp.AbstractPolicyFactory
instantiate a factory with empty policies
AbstractPolicyFactory(URL) - Constructor for class net.sf.container.imp.AbstractPolicyFactory
instantiate a factory with policies defined in the policy file
AbstractPolicyFactory(URL, PolicyParser) - Constructor for class net.sf.container.imp.AbstractPolicyFactory
instantiate a factory with policies defined in the policy file
advance() - Method in class net.sf.container.imp.PolicyFileParser
advance to next token

B

beginParsing() - Method in class net.sf.container.imp.AbstractParseListener
callback to indicate that parsing process begins initialize the vectors
beginParsing() - Method in interface net.sf.container.PolicyParseListener
callback to indicate that parsing process begins

C

CertificateAuthorityFactory - Class in net.sf.container.imp
Container factory providing Container creation where container policies are based on certificates issued by "signedBy" aliases.
CertificateAuthorityFactory() - Constructor for class net.sf.container.imp.CertificateAuthorityFactory
instantiate a factory with policies defined in the policy file
CertificateAuthorityFactory(URL) - Constructor for class net.sf.container.imp.CertificateAuthorityFactory
instantiate a factory with policies defined in the policy file
CertificateAuthorityFactory(URL, PolicyParser) - Constructor for class net.sf.container.imp.CertificateAuthorityFactory
instantiate a factory with policies defined in the policy file
CodebaseFactory - Class in net.sf.container.imp
Container factory providing Container creation where container policies are based on "codeBase" identification.
CodebaseFactory() - Constructor for class net.sf.container.imp.CodebaseFactory
instantiate a factory with policies defined in the policy file
CodebaseFactory(URL) - Constructor for class net.sf.container.imp.CodebaseFactory
instantiate a factory with policies defined in the policy file
CodebaseFactory(URL, PolicyParser) - Constructor for class net.sf.container.imp.CodebaseFactory
instantiate a factory with policies defined in the policy file
Container - Interface in net.sf.container
Containers provide with a way to execute user code within such runtime restrictions that are defined by the container policy itself.
ContainerFactory - Interface in net.sf.container
Container factories provide with interfaces to instantiate Container.
ContainerImp - Class in net.sf.container.imp
Implements default container logic created on Jun 9, 2005
ContainerImp(AccessControlContext) - Constructor for class net.sf.container.imp.ContainerImp
Create the container with given context settings
ContainerInstantiationException - Exception in net.sf.container
Encapsulate an error during Container creation.
ContainerInstantiationException(String, Throwable) - Constructor for exception net.sf.container.ContainerInstantiationException
instantiate a new exception object
ContainerInstantiationException(String) - Constructor for exception net.sf.container.ContainerInstantiationException
instantiate a new exception object

D

doPrivileged(Runnable) - Method in interface net.sf.container.Container
execute a code without throwing any exceptions
doPrivileged(PrivilegedAction) - Method in interface net.sf.container.Container
execute a code without throwing any exceptions
doPrivileged(PrivilegedExceptionAction) - Method in interface net.sf.container.Container
execute a code and throw execution exception if happens
doPrivileged(Runnable) - Method in class net.sf.container.imp.ContainerImp
execute the given action
doPrivileged(PrivilegedAction) - Method in class net.sf.container.imp.ContainerImp
execute the given action
doPrivileged(PrivilegedExceptionAction) - Method in class net.sf.container.imp.ContainerImp
execute the given action

E

endGrant() - Method in class net.sf.container.imp.AbstractParseListener
callback when grant definition is over add last grant to the collection of protection domains
endGrant() - Method in interface net.sf.container.PolicyParseListener
callback when grant definition is over
endParsing() - Method in class net.sf.container.imp.AbstractParseListener
callback to indicate that parsing process is over builds the list of protection domains out all parsed grant entries
endParsing() - Method in interface net.sf.container.PolicyParseListener
callback to indicate that parsing process is over
endPolicyFile() - Method in class net.sf.container.imp.AbstractParseListener
callback when policy file parsing is over clear the url
endPolicyFile() - Method in interface net.sf.container.PolicyParseListener
callback when the parsing of the policy file is over
expectCharAndAdvance(char) - Method in class net.sf.container.imp.PolicyFileParser
test if current token is given character and then advance.

G

getAllKeyStores() - Method in class net.sf.container.imp.AbstractParseListener
 
getAllPolicies() - Method in class net.sf.container.imp.AbstractParseListener
 
getContainerFactory() - Method in class net.sf.container.imp.CertificateAuthorityFactory
 
getContainerFactory() - Method in class net.sf.container.imp.CodebaseFactory
 
getContainerFactory() - Method in interface net.sf.container.PolicyParseListener
 
getKeyStores() - Method in class net.sf.container.imp.AbstractParseListener
 
getListener() - Method in class net.sf.container.imp.PolicyFileParser
 
getListener() - Method in interface net.sf.container.PolicyParser
 
getProtectionDomains() - Method in class net.sf.container.imp.AbstractParseListener
 

L

lookupCertificate(String) - Method in class net.sf.container.imp.AbstractParseListener
search all currently known keystores for certificate with given alias returns null if does not exists
lookupCertificatesList(String) - Method in class net.sf.container.imp.AbstractParseListener
search all currently known keystores for certificates with given aliases returns empty array if no matching found

M

matchChar(char) - Method in class net.sf.container.imp.PolicyFileParser
test if current token is given character
matchWord(String) - Method in class net.sf.container.imp.PolicyFileParser
test if current token is the given word

N

net.sf.container - package net.sf.container
Main library API is defined here.
net.sf.container.imp - package net.sf.container.imp
All particular implementations of library's API are here
newContainer(Object) - Method in interface net.sf.container.ContainerFactory
create new container based on given permission set criteria permission set criteria is implementation specific.
newContainer(ProtectionDomain[]) - Method in class net.sf.container.imp.AbstractPolicyFactory
template method: create new container out of protection domains list
newContainer(Object) - Method in class net.sf.container.imp.CertificateAuthorityFactory
create new container based on certificateIssuedBy permission set criteria
newContainer(Certificate) - Method in class net.sf.container.imp.CertificateAuthorityFactory
create new container having all permission sets of these certificate aliases (given in the policy file) which have issued that particular certificate.
newContainer(Object) - Method in class net.sf.container.imp.CodebaseFactory
create new container based on codeBase permission set criteria
newContainer(String) - Method in class net.sf.container.imp.CodebaseFactory
create new container based on the url it is supposed that there is only one policy "codeBase" matching to that URL.
newGrant(String, String) - Method in class net.sf.container.imp.AbstractParseListener
callback when new grant definition is encountered
newGrant(String, String) - Method in interface net.sf.container.PolicyParseListener
callback when new grant definition is encountered
newKeystore(String, String) - Method in class net.sf.container.imp.AbstractParseListener
callback when new keystore definition is encountered instantiate the keystore and add it to the collection of keystores Treats ksUrl as following: relative URL, adds it to the policy file's URL in place of last component name absolute URL, tries to instantiate a new URL from that string relative file path, tries to instantiate parent File out of policy file URL and add ksUrl as child to it absolute file path, tries to instantiate new File out of ksUrl If all this fails it will throw FileNotFoundException.
newKeystore(String, String) - Method in interface net.sf.container.PolicyParseListener
callback when new keystore definition is encountered
newPermission(String, String, String, String) - Method in class net.sf.container.imp.AbstractParseListener
callback when new permission grant is encountered signedbyAliases is ignored
newPermission(String, String, String, String) - Method in interface net.sf.container.PolicyParseListener
callback when new permission grant is encountered
newPolicyFile(URL) - Method in class net.sf.container.imp.AbstractParseListener
callback when new policy file parsing starts remember the url
newPolicyFile(URL) - Method in interface net.sf.container.PolicyParseListener
callback when parsing of a new policy file starts
newUrlInputSteam(String) - Method in class net.sf.container.imp.AbstractParseListener
instantiates new InputStream out of given URL

P

parse(URL) - Method in class net.sf.container.imp.PolicyFileParser
parse the policy file
parse(URL, Reader) - Method in class net.sf.container.imp.PolicyFileParser
parse the policy file provided as url and stream reader
parse(URL, Reader) - Method in interface net.sf.container.PolicyParser
parse policy file as given stream and url location
parse(URL) - Method in interface net.sf.container.PolicyParser
parse policy file as given url file location
parseEnvVars(String) - Method in class net.sf.container.imp.AbstractParseListener
parse given text and substitute all environment variables with their values (marked in in the format ${env-name} ).
parseGrantAndAdvance() - Method in class net.sf.container.imp.PolicyFileParser
parse grant construct
parseKeystoreAndAdvance() - Method in class net.sf.container.imp.PolicyFileParser
parse keystore construct
parseOptionAndAdvance() - Method in class net.sf.container.imp.PolicyFileParser
parse semicolon delimited option and advance if there is no semicolon return null
parseValue() - Method in class net.sf.container.imp.PolicyFileParser
parse text quoted value
parseValueAndAdvance(String) - Method in class net.sf.container.imp.PolicyFileParser
parse quoted text value and advance parser to next token position if current token is not an quoted string raise and exception
parseValueAndAdvance() - Method in class net.sf.container.imp.PolicyFileParser
parse quoted text value and advance parser to next token position if current token is not an quoted string return null without to advance.
parseWordAndValueAndAdvance(String, String) - Method in class net.sf.container.imp.PolicyFileParser
if current token is the given word, read the consequent quoted text and advance to next token.
parseWordAndValueAndAdvance(String) - Method in class net.sf.container.imp.PolicyFileParser
if current token is the given word, read the consequent quoted text and advance to next token.
PolicyFileParser - Class in net.sf.container.imp
Parse the official Policy File syntax created on Jun 13, 2005
PolicyFileParser() - Constructor for class net.sf.container.imp.PolicyFileParser
 
PolicyParseException - Exception in net.sf.container
Exception during parsing created on Jun 13, 2005
PolicyParseException(String, Throwable) - Constructor for exception net.sf.container.PolicyParseException
instantiate a new exception object
PolicyParseException(String) - Constructor for exception net.sf.container.PolicyParseException
instantiate a new exception object
PolicyParseListener - Interface in net.sf.container
Listener for PolicyParser callback events.
PolicyParser - Interface in net.sf.container
Parse a policy file and propagate parsing events to the parse listener.

R

replaceCurrentUrlPosition(URL, String) - Method in class net.sf.container.imp.AbstractParseListener
replace last file position in the given URL with new file
resolveKsInputSteam(String) - Method in class net.sf.container.imp.AbstractParseListener
locate keystore's input stream or throw FileNotFoundException.

S

setListener(PolicyParseListener) - Method in class net.sf.container.imp.PolicyFileParser
set the parse listener
setListener(PolicyParseListener) - Method in interface net.sf.container.PolicyParser
set events listener
setPolicies(URL) - Method in interface net.sf.container.ContainerFactory
set policies to be used by this factory while creating containers it uses a default policy file parser.
setPolicies(URL, PolicyParser) - Method in interface net.sf.container.ContainerFactory
set policies to be used by this factory while creating containers
setPolicies(URL) - Method in class net.sf.container.imp.AbstractPolicyFactory
set policies to be used by this factory while creating containers it uses PolicyParser file parser.
setPolicies(URL, PolicyParser) - Method in class net.sf.container.imp.AbstractPolicyFactory
set policies to be used by this factory while creating containers
spreadDefaultGrants() - Method in class net.sf.container.imp.AbstractParseListener
this method is called after the parse of a policy file to kind of "spread" default permissions to all grant entries (i.e. protection domains)

T

testForValue() - Method in class net.sf.container.imp.PolicyFileParser
test if current token is an quoted string
testForWord() - Method in class net.sf.container.imp.PolicyFileParser
test if current token is a word
toExternalForm(URL, String) - Method in class net.sf.container.imp.AbstractParseListener
Converts a URL of a specific protocol to a String.

A B C D E G L M N P R S T

Copyright © 2007 Nikolay Fiykov. All Rights Reserved.