public function getSecurity()
	{
		$dbname = $this->client->getDatabaseName();
		$raw = $this->client->query(
				"GET", "/" . $dbname . "/_security"
		);
		$resp = Couch::parseRawResponse($raw);
		if ($resp['status_code'] != 200) {
			throw new CouchException($raw);
		}
		if (!property_exists($resp['body'], "admins")) {
			$resp["body"]->admins = new stdClass();
			$resp["body"]->admins->names = array();
			$resp["body"]->admins->roles = array();
			$resp["body"]->readers = new stdClass();
			$resp["body"]->readers->names = array();
			$resp["body"]->readers->roles = array();
		}
		return $resp['body'];
	}
public function getSecurity()
	{
		$dbname = $this->client->getDatabaseName();
		$raw = $this->client->query(
				"GET", "/" . $dbname . "/_security"
		);
		$resp = Couch::parseRawResponse($raw);
		if ($resp['status_code'] != 200) {
			throw new CouchException($raw);
		}
		if (!property_exists($resp['body'], "admins")) {
			$resp["body"]->admins = new stdClass();
			$resp["body"]->admins->names = array();
			$resp["body"]->admins->roles = array();
			$resp["body"]->readers = new stdClass();
			$resp["body"]->readers->names = array();
			$resp["body"]->readers->roles = array();
		}
		return $resp['body'];
	}
public function getSecurity ( ) { $ dbname = $ this -> client -> getDatabaseName ( ) ; $ raw = $ this -> client -> query ( "GET" , "/" . $ dbname . "/_security" ) ; $ resp = Couch :: parseRawResponse ( $ raw ) ; if ( $ resp [ 'status_code' ] != 200 ) { throw new CouchException ( $ raw ) ; } if ( ! property_exists ( $ resp [ 'body' ] , "admins" ) ) { $ resp [ "body" ] -> admins = new stdClass ( ) ; $ resp [ "body" ] -> admins -> names = array ( ) ; $ resp [ "body" ] -> admins -> roles = array ( ) ; $ resp [ "body" ] -> readers = new stdClass ( ) ; $ resp [ "body" ] -> readers -> names = array ( ) ; $ resp [ "body" ] -> readers -> roles = array ( ) ; } return $ resp [ 'body' ] ; }
returns the security object of a database

@link http://wiki.apache.org/couchdb/Security_Features_Overview
@return stdClass security object of the database
@throws CouchException
returns the security object of a database