* * Licensed under the Apache License, Version 2.0 (the "License");\r
* * you may not use this file except in compliance with the License.\r
* * You may obtain a copy of the License at\r
- * * \r
+ * *\r
* * http://www.apache.org/licenses/LICENSE-2.0\r
- * * \r
+ * *\r
* * Unless required by applicable law or agreed to in writing, software\r
* * distributed under the License is distributed on an "AS IS" BASIS,\r
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
* The <code>AuthorizationResponse</code> interface gives the caller access to information about an authorization\r
* decision. This information includes the permit/deny decision itself, along with supplementary information in the form of\r
* advice and obligations. (The advice and obligations will not be used in Data Router R1.)\r
- * \r
+ *\r
* @author J. F. Lucas\r
*\r
*/\r
public interface AuthorizationResponse {\r
- /**\r
- * Indicates whether the request is authorized or not.\r
- * \r
- * @return a boolean flag that is <code>true</code> if the request is permitted, and <code>false</code> otherwise.\r
- */\r
- public boolean isAuthorized();\r
- \r
- /**\r
- * Returns any advice elements that were included in the authorization response.\r
- * \r
- * @return A list of objects implementing the <code>AuthorizationResponseSupplement</code> interface, with each object representing an\r
- * advice element from the authorization response.\r
- */\r
- public List<AuthorizationResponseSupplement> getAdvice();\r
- \r
- /**\r
- * Returns any obligation elements that were included in the authorization response.\r
- * \r
- * @return A list of objects implementing the <code>AuthorizationResponseSupplement</code> interface, with each object representing an\r
- * obligation element from the authorization response.\r
- */\r
- public List<AuthorizationResponseSupplement> getObligations();\r
+ /**\r
+ * Indicates whether the request is authorized or not.\r
+ *\r
+ * @return a boolean flag that is <code>true</code> if the request is permitted, and <code>false</code> otherwise.\r
+ */\r
+ public boolean isAuthorized();\r
+\r
+ /**\r
+ * Returns any advice elements that were included in the authorization response.\r
+ *\r
+ * @return A list of objects implementing the <code>AuthorizationResponseSupplement</code> interface, with each object representing an\r
+ * advice element from the authorization response.\r
+ */\r
+ public List<AuthorizationResponseSupplement> getAdvice();\r
+\r
+ /**\r
+ * Returns any obligation elements that were included in the authorization response.\r
+ *\r
+ * @return A list of objects implementing the <code>AuthorizationResponseSupplement</code> interface, with each object representing an\r
+ * obligation element from the authorization response.\r
+ */\r
+ public List<AuthorizationResponseSupplement> getObligations();\r
}\r