nbi.xmlsec.xacml.builder
Class ObligationBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.ObligationBuilder
All Implemented Interfaces:
XACMLObjectBuilder

public class ObligationBuilder
extends Object
implements XACMLObjectBuilder

This class supports the creation of obligations.

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

Field Summary
(package private)  List assignments
          attribute assignment data in this obligation.
(package private)  int fulfillOn
          effect that will cause this obligation to be included in a response.
(package private)  URI identifier
          The obligation's identifier.
 
Constructor Summary
ObligationBuilder()
           
 
Method Summary
 void addAssignment(AttributeValue assignment)
          Adds an attribute assignment data to this obligation.
(package private)  Obligation getInstance()
           
 void removeAssignment(AttributeValue assignment)
          Removes an attribute assignment data to this obligation.
 void setAssignments(List assignments)
          Sets the attribute assignment data in this obligation.
 void setFulfillOn(int fulfillOn)
          Sets the effect that will cause this obligation to be included in a response.
 void setIdentifier(Identifier id)
          Sets the obligation's identifier.
 void setIdentifier(String id)
          Sets the obligation's identifier.
 void setIdentifier(URI id)
          Sets the obligation's identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

URI identifier
The obligation's identifier.


fulfillOn

int fulfillOn
effect that will cause this obligation to be included in a response.


assignments

List assignments
attribute assignment data in this obligation.

Constructor Detail

ObligationBuilder

public ObligationBuilder()
Method Detail

setIdentifier

public void setIdentifier(Identifier id)
                   throws URISyntaxException
Sets the obligation's identifier.

Parameters:
id - The obligation identifier to set.
Throws:
URISyntaxException - @see URI#URI(java.lang.String).

getInstance

Obligation getInstance()

setIdentifier

public void setIdentifier(URI id)
Sets the obligation's identifier.

Parameters:
id - The obligation identifier to set.

setIdentifier

public void setIdentifier(String id)
                   throws URISyntaxException
Sets the obligation's identifier.

Parameters:
id - The obligation identifier to set.
Throws:
URISyntaxException - @see URI#URI(java.lang.String).

addAssignment

public void addAssignment(AttributeValue assignment)
Adds an attribute assignment data to this obligation.

Parameters:
assignment - The attribute assignment data to add.
Returns:
true if the assignment has been added succesfully.

removeAssignment

public void removeAssignment(AttributeValue assignment)
Removes an attribute assignment data to this obligation.

Parameters:
assignment - The attribute assignment data to remove.
Returns:
true if the assignment has been removed succesfully.

setAssignments

public void setAssignments(List assignments)
Sets the attribute assignment data in this obligation.

Parameters:
assignments - The assignments to set.

setFulfillOn

public void setFulfillOn(int fulfillOn)
Sets the effect that will cause this obligation to be included in a response.

Parameters:
fulfillOn - The fulfillOn effect to set.


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