package eu.dnetlib.enabling.aas.rmi;

import java.io.Serializable;

/**
 * Obligation is a part of AuthrorizeResponse and AuthenticateResp. 
 * Contains obligation for specified resource.
 * @author mhorst
 *
 */
public class Obligation implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8814736749631800276L;

	private String resource;
	private String obligation;
	private Attribute[] attributes;
		
	
	/**
	 * Default constructor for SOAP Xfire purposes.
	 */
	public Obligation() {
		
	}
	
	/**
	 * Returns obligation for resource.
	 * @return obligation
	 */
	public String getObligation() {
		return obligation;
	}
	
	/**
	 * Sets obligation for resource.
	 * @param obligation
	 */
	public void setObligation(String obligation) {
		this.obligation = obligation;
	}
	
	/**
	 * Returns resource identifier. 
	 * @return resource
	 */
	public String getResource() {
		return resource;
	}
	
	/**
	 * Sets resource identifier.
	 * @param resource
	 */
	public void setResource(String resource) {
		this.resource = resource;
	}

	/**
	 * Returns attributes of obligation.
	 * @return attributes of obligation
	 */
	public Attribute[] getAttributes() {
		return attributes;
	}

	/**
	 * Sets attributes for obligation.
	 * @param attributes
	 */
	public void setAttributes(Attribute[] attributes) {
		this.attributes = attributes;
	}
}
