com.dtolabs.rundeck.core.authorization.providers
Class Policies

java.lang.Object
  extended by 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).


Constructor Summary
Policies(PoliciesCache cache)
           
 
Method Summary
 int count()
           
 java.util.List<java.lang.String> listAllRoles()
          Deprecated. 
static Policies load(java.io.File rootPath)
          Load the policies contained in the root path.
 java.util.List<AclContext> narrowContext(javax.security.auth.Subject subject, java.util.Set<Attribute> environment)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Policies

public Policies(PoliciesCache cache)
Method Detail

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: