Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
XacmlAuthorizationService |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
3 | * All rights reserved. | |
4 | * | |
5 | * Licensed under the Open Permis License which accompanies this distribution, | |
6 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
7 | */ | |
8 | package org.openpermis.xacml; | |
9 | ||
10 | import java.io.IOException; | |
11 | import java.io.Reader; | |
12 | import java.io.Writer; | |
13 | ||
14 | ||
15 | ||
16 | /** | |
17 | * A service to perform XACML request/response authorization decisions. | |
18 | * @since 0.4.0 | |
19 | */ | |
20 | public interface XacmlAuthorizationService { | |
21 | ||
22 | //---- Methods | |
23 | ||
24 | /** | |
25 | * Evaluates an xacml request and returns an xacml response. | |
26 | * @param request the authorization request. | |
27 | * @param response the authorization response. | |
28 | * @return the authorization response. | |
29 | * @throws IOException indicates a io problem of {@link Reader} or {@link Writer}. | |
30 | * decision. | |
31 | * @since 0.4.0 | |
32 | */ | |
33 | public Writer getAccessDescision (Reader request, Writer response) throws IOException; | |
34 | ||
35 | ||
36 | } |