/************************************************
* Columbia University CS Department
* Network Security Lab
*
* Open and Survivable Embedded Systems (OASES)
*
* Structured Policy Command Language (SPCL)
*
*
* This software is provided as is without any
* warranty or guarantee of merchantibility
* or fitness for a particular purpose. This
* software is released under the terms of the
* GNU General Public License (GPL).
*
* Last updated: April 10, 2003
*
***********************************************/

package spcl.data;

import java.io.Serializable;

/** 
 * A request from a system object
 *
*/
public class PolicyRequest implements Serializable{

	private String content = "";
	
	/* these credentials must be verified */

	//username is basically the systemObject name/id
	private String username="";
	private char [] password;


	public PolicyRequest(){
		//intially, we hard code this as "root"
		//this means that any connection from the
		//PolicyEngineClient acts as root and can
		//query on any system object.
		//note that this is no security at all
		//in fact, this info is not even checked on
		//the server side. The point of this project
		//is to build a policy language, engine, and client
		//and not to worry about solvable authentication
		//issues.
		//eventually, no system object can query another
		//unless a policy specifies it, and every client
		//must pass auth credentials upon connection
		//so that the engine can trust who it is talking to
	}

	public void setContent( String c ){
		content = c;
	}

	public String getContent(){
		return content;
	}

	public String toString(){
		return content;
	}

}
