com.dtolabs.rundeck.core.authorization.providers
Class Policies
java.lang.Object
com.dtolabs.rundeck.core.authorization.providers.Policies
public class Policies
- extends java.lang.Object
Policies represent the policies as described in the policies file(s).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Policies
public Policies(PoliciesCache cache)
count
public int count()
load
public static Policies load(java.io.File rootPath)
throws java.io.IOException,
PoliciesParseException
- Load the policies contained in the root path.
- Parameters:
rootPath
-
- Returns:
-
- Throws:
PoliciesParseException
- Thrown when there is a problem parsing a file.
java.io.IOException
narrowContext
public java.util.List<AclContext> narrowContext(javax.security.auth.Subject subject,
java.util.Set<Attribute> environment)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
listAllRoles
@Deprecated
public java.util.List<java.lang.String> listAllRoles()
- Deprecated.
- Returns: