|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.container.imp.AbstractParseListener
net.sf.container.imp.AbstractPolicyFactory
public abstract class AbstractPolicyFactory
Default implementation of ContainerFactory.
It implements also ParseListener for the purpose of
implementing easily a particular algorithm for Container
instantiation.
Subclasses have to define the actual contanerId-PermissionSet relationship logic. created on Jun 10, 2005
CodebaseFactory,
CertificateAuthorityFactory| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.container.imp.AbstractParseListener |
|---|
AbstractParseListener.GrantEntry |
| Constructor Summary | |
|---|---|
AbstractPolicyFactory()
instantiate a factory with empty policies |
|
AbstractPolicyFactory(java.net.URL policyFile)
instantiate a factory with policies defined in the policy file |
|
AbstractPolicyFactory(java.net.URL policyFile,
PolicyParser parser)
instantiate a factory with policies defined in the policy file |
|
| Method Summary | |
|---|---|
protected Container |
newContainer(java.security.ProtectionDomain[] pds)
template method: create new container out of protection domains list |
void |
setPolicies(java.net.URL policyFile)
set policies to be used by this factory while creating containers it uses PolicyParser file parser. |
void |
setPolicies(java.net.URL policyFile,
PolicyParser parser)
set policies to be used by this factory while creating containers |
| Methods inherited from class net.sf.container.imp.AbstractParseListener |
|---|
beginParsing, endGrant, endParsing, endPolicyFile, getAllKeyStores, getAllPolicies, getKeyStores, getProtectionDomains, lookupCertificate, lookupCertificatesList, newGrant, newKeystore, newPermission, newPolicyFile, newUrlInputSteam, parseEnvVars, replaceCurrentUrlPosition, resolveKsInputSteam, spreadDefaultGrants, toExternalForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.container.ContainerFactory |
|---|
newContainer |
| Methods inherited from interface net.sf.container.PolicyParseListener |
|---|
getContainerFactory |
| Constructor Detail |
|---|
public AbstractPolicyFactory()
public AbstractPolicyFactory(java.net.URL policyFile)
throws java.io.FileNotFoundException,
PolicyParseException,
java.io.IOException
policyFile -
java.io.FileNotFoundException
PolicyParseException
java.io.IOExceptionsetPolicies(URL)
public AbstractPolicyFactory(java.net.URL policyFile,
PolicyParser parser)
throws java.io.FileNotFoundException,
PolicyParseException,
java.io.IOException
policyFile -
java.io.FileNotFoundException
PolicyParseException
java.io.IOExceptionsetPolicies(URL, PolicyParser)| Method Detail |
|---|
public void setPolicies(java.net.URL policyFile)
throws java.io.FileNotFoundException,
PolicyParseException,
java.io.IOException
it uses PolicyParser file parser.
setPolicies in interface ContainerFactorypolicyFile - with all permission sets
java.io.FileNotFoundException - in case the resource does not exists
PolicyParseException - if the fail format is not recognized
by the parser
java.io.IOException - in case of error while reading
public void setPolicies(java.net.URL policyFile,
PolicyParser parser)
throws java.io.FileNotFoundException,
PolicyParseException,
java.io.IOException
setPolicies in interface ContainerFactorypolicyFile - with all permission setsparser - to use to parse the policyFile
java.io.FileNotFoundException - in case the resource does not exists
PolicyParseException - if the fail format is not recognized
by the parser
java.io.IOException - in case of error while readingprotected Container newContainer(java.security.ProtectionDomain[] pds)
pds - to be used by this container
Container object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||