|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.PolicyFinder issrg.simplePERMIS.SimplePERMISPolicyFinder
public class SimplePERMISPolicyFinder
This class implements the PolicyFinder interface, and provides loading a policy from a plain text XML file.
Field Summary |
---|
Fields inherited from class issrg.pba.rbac.PolicyFinder |
---|
accessPolicy, allocationPolicy, authzTokenRepository, filepath, msodPolicySet, parsedPolicy, policyOID, satLevel, sawsServer, soa, sv, tokenParser |
Constructor Summary | |
---|---|
SimplePERMISPolicyFinder(java.io.File file)
Deprecated. |
|
SimplePERMISPolicyFinder(java.io.File file,
java.security.Principal soa)
Creates a new instance of SimplePERMISPolicyFinder based on the specified file and the given Source of Authority. |
|
SimplePERMISPolicyFinder(java.io.File file,
java.security.Principal soa,
int satLevel)
Constructs a new instance of a SimplePERMISPolicyFinder based on the given file, the policy writer and the level of logging required for SAWS. |
|
SimplePERMISPolicyFinder(java.lang.String xmlPolicy,
java.security.Principal soa)
Creates a new instance of SimplePERMISPolicyFinder based on the specified policy and the given Source of Authority. |
|
SimplePERMISPolicyFinder(java.lang.String xmlPolicy,
java.security.Principal soa,
int satLevel)
Creates a new instance of SimplePERMISPolicyFinder based on the specified policy and the given Source of Authority. |
Method Summary | |
---|---|
protected void |
initFromString(java.lang.String xmlPolicy,
int satLevel)
Helper method to create the SimplePERMISPolicyFinder from a string object containing the policy. |
Methods inherited from class issrg.pba.rbac.PolicyFinder |
---|
getAccessPolicy, getAllocationPolicy, getfilepath, getMSoDPolicy, getParsedPolicy, getPolicyOID, getRepository, getSATLevel, getSAWSServer, getSOA, getSV, removeSystemTag, SAWSCloseLog, setSV |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePERMISPolicyFinder(java.lang.String xmlPolicy, java.security.Principal soa) throws PbaException
xmlPolicy
- a string containing the XML policysoa
- a Principal representing the Source of Authority for this policy
PbaException
public SimplePERMISPolicyFinder(java.lang.String xmlPolicy, java.security.Principal soa, int satLevel) throws PbaException
xmlPolicy
- a string containing the XML policysoa
- a Principal representing the Source of Authority for this policysatLevel
- the logging level required for SAWS logging
PbaException
@Deprecated public SimplePERMISPolicyFinder(java.io.File file) throws java.io.IOException, PbaException
file
- A File object from which the policy will be read.
java.io.IOException
- when the file could not be read
PbaException
- when the policy could not be parsedpublic SimplePERMISPolicyFinder(java.io.File file, java.security.Principal soa) throws java.io.IOException, PbaException
file
- A File object from which the policy will be read.soa
- a Principal representing the Source of Authority
java.io.IOException
- when the file could not be read
PbaException
- when the policy could not be parsedpublic SimplePERMISPolicyFinder(java.io.File file, java.security.Principal soa, int satLevel) throws java.io.IOException, PbaException
file
- contains the policysoa
- a Principal representing the policy writersatLevel
- the level of logging required for SAWS. Should be one of
the constants specified in SAWSLogLevelConstant
.
java.io.IOException
- when the file could not be read
PbaException
- when the policy could not be parsedSAWSLogLevelConstant
Method Detail |
---|
protected void initFromString(java.lang.String xmlPolicy, int satLevel) throws PbaException
xmlPolicy
- a string containing the policysatLevel
- the desired level for logging to SAWS.
PbaException
- when the policy could not be parsed
java.lang.Throwable
- when something goes wrong
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |