Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
XacmlWriter |
|
| 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.io; | |
9 | ||
10 | ||
11 | import org.openpermis.policy.AccessDecision; | |
12 | ||
13 | ||
14 | /** | |
15 | * A writer for xacml. | |
16 | * @since 0.4.0 | |
17 | */ | |
18 | public interface XacmlWriter { | |
19 | ||
20 | //---- Methods | |
21 | ||
22 | /** | |
23 | * Writes a permis access decision to an xacml response. If the decision is <code>null</code> an | |
24 | * appropriate response is generated (Used to signal an exception). | |
25 | * @param decision the access decision, may be null. | |
26 | * @param status the status, may be null. | |
27 | * @return the xacml response. | |
28 | */ | |
29 | public String writeResponse (AccessDecision decision, XacmlStatus status); | |
30 | ||
31 | ||
32 | } |