nbi.xmlsec.xacml.profile.rbac.builder
Class RBACRequestCtxBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.RequestCtxBuilder
      extended bynbi.xmlsec.xacml.profile.rbac.builder.RBACRequestCtxBuilder

public class RBACRequestCtxBuilder
extends RequestCtxBuilder

Class to create RBAC specific RequestCtxs.

Since:
Version:
$Revision: 1.4 $
Author:
Lutz Suhrbier

Field Summary
(package private) static Logger logger
           
 
Fields inherited from class nbi.xmlsec.xacml.builder.RequestCtxBuilder
AT_ACTION, AT_ENV, AT_RESOURCE
 
Constructor Summary
RBACRequestCtxBuilder()
          Default Constructor.
 
Method Summary
 boolean addAction(String action)
          Adds the action part of a request context on a given reource String.
 boolean addResource(String resource)
          Adds the given resource string to the resource part of a request context.
 boolean addRole(RoleAssignmentPolicyIdentifier roleId)
          Adds a role to the subject part of a request context on a given RoleAssignmentPolicyIdentifier.
 boolean addRoles(Set roleIds)
          Adds a set of roles to the subject part of a request context using addRole(RoleAssignmentPolicyIdentifier).
 boolean removeAction(String action)
          Removes the given action string from the action part of a request context.
 boolean removeResource(String resource)
          Removes the given resource string from the resource part of a request context.
 boolean removeRole(RoleAssignmentPolicyIdentifier roleId)
          Removes a role from the subject part of a request context on a given RoleAssignmentPolicyIdentifier.
 
Methods inherited from class nbi.xmlsec.xacml.builder.RequestCtxBuilder
add, add, addAction, addEnvironment, addResource, getInstance, remove, remove, removeAction, removeEnvironment, removeResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static Logger logger
Constructor Detail

RBACRequestCtxBuilder

public RBACRequestCtxBuilder()
Default Constructor.

Method Detail

addRole

public boolean addRole(RoleAssignmentPolicyIdentifier roleId)
Adds a role to the subject part of a request context on a given RoleAssignmentPolicyIdentifier. Uses the attribute id of the RolePolicySet as subject id.

Parameters:
roleId - The RoleAssignmentPolicyIdentifier
Returns:
true if the role has been added succesfully.
Throws:
URISyntaxException

addRoles

public boolean addRoles(Set roleIds)
Adds a set of roles to the subject part of a request context using addRole(RoleAssignmentPolicyIdentifier).

Parameters:
roleIds - A set of RoleAssignmentPolicyIdentifiers.
Returns:
true if the role has been added succesfully.
Throws:
URISyntaxException

removeRole

public boolean removeRole(RoleAssignmentPolicyIdentifier roleId)
Removes a role from the subject part of a request context on a given RoleAssignmentPolicyIdentifier. Uses the attribute id of the RolePolicySet as subject id.

Parameters:
roleId - The RoleAssignmentPolicyIdentifier
Returns:
true if the role has been removed succesfully.
Throws:
URISyntaxException

addResource

public boolean addResource(String resource)
Adds the given resource string to the resource part of a request context. Uses the attribute id of the ResourceAttributeDesignator as resource id.

Parameters:
resource - The resource string.
Returns:
true if the resource has been added succesfully.
Throws:
URISyntaxException

removeResource

public boolean removeResource(String resource)
Removes the given resource string from the resource part of a request context. Uses the attribute id of the ResourceAttributeDesignator as resource id.

Parameters:
resource - The resource string.
Returns:
true if the resource has been removed succesfully.
Throws:
URISyntaxException

addAction

public boolean addAction(String action)
Adds the action part of a request context on a given reource String. Uses the attribute id of the ActionAttributeDesignator as action id.

Parameters:
action - The action string.
Returns:
true if the action has been added succesfully.
Throws:
URISyntaxException

removeAction

public boolean removeAction(String action)
Removes the given action string from the action part of a request context. Uses the attribute id of the ActionAttributeDesignator as action id.

Parameters:
action - The action string.
Returns:
true if the action has been removed succesfully.
Throws:
URISyntaxException


Copyright © 2006 Lutz Suhrbier, Freie Universität Berlin. All Rights Reserved.