org.openpermis.xacml.basic
Class BasicXacmlAuthorizationService

java.lang.Object
  extended by org.openpermis.xacml.basic.BasicXacmlAuthorizationService
All Implemented Interfaces:
XacmlAuthorizationService

public class BasicXacmlAuthorizationService
extends Object
implements XacmlAuthorizationService

A basic implementation of an xacml authorization service.

Since:
0.4.0

Field Summary
private  XacmlReader reader
           
private  org.openpermis.AuthorizationService service
           
private  XacmlWriter writer
           
 
Constructor Summary
BasicXacmlAuthorizationService(org.openpermis.AuthorizationService service)
          Creates an xacml authorization service based on a normal authorization service.
 
Method Summary
 Writer getAccessDescision(Reader request, Writer response)
          Evaluates an xacml request and returns an xacml response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private final org.openpermis.AuthorizationService service

reader

private final XacmlReader reader

writer

private final XacmlWriter writer
Constructor Detail

BasicXacmlAuthorizationService

public BasicXacmlAuthorizationService(org.openpermis.AuthorizationService service)
Creates an xacml authorization service based on a normal authorization service.

Parameters:
service - the AuthorizationService to determine access decisions.
Since:
0.4.0
Method Detail

getAccessDescision

public Writer getAccessDescision(Reader request,
                                 Writer response)
                          throws IOException
Description copied from interface: XacmlAuthorizationService
Evaluates an xacml request and returns an xacml response.

Specified by:
getAccessDescision in interface XacmlAuthorizationService
Parameters:
request - the authorization request.
response - the authorization response.
Returns:
the authorization response.
Throws:
IOException - indicates a io problem of Reader or Writer. decision.
Since:
0.4.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:45
Copyright (c) 2002-2007 Ergon Informatik AG