- private boolean authorized;\r
- private List<AuthorizationResponseSupplement> advice;\r
- private List<AuthorizationResponseSupplement> obligations;\r
- \r
- /** Constructor. This version will not be used in Data Router R1 since we will not have advice and obligations.\r
- * \r
- * @param authorized flag indicating whether the response carried a permit response (<code>true</code>) \r
- * or something else (<code>false</code>).\r
- * @param advice list of advice elements returned in the response.\r
- * @param obligations list of obligation elements returned in the response.\r
- */\r
- public AuthRespImpl(boolean authorized, List<AuthorizationResponseSupplement> advice, List<AuthorizationResponseSupplement> obligations) {\r
- this.authorized = authorized;\r
- this.advice = (advice == null ? null : new ArrayList<AuthorizationResponseSupplement> (advice));\r
- this.obligations = (obligations == null ? null : new ArrayList<AuthorizationResponseSupplement> (obligations));\r
- }\r
- \r
- /** Constructor. Simple version for authorization responses that have no advice and no obligations.\r
- * \r
- * @param authorized flag indicating whether the response carried a permit (<code>true</code>) or something else (<code>false</code>).\r
- */\r
- public AuthRespImpl(boolean authorized) {\r
- this(authorized, null, null);\r
- }\r
+ private boolean authorized;\r
+ private List<AuthorizationResponseSupplement> advice;\r
+ private List<AuthorizationResponseSupplement> obligations;\r
+\r
+ /** Constructor. This version will not be used in Data Router R1 since we will not have advice and obligations.\r
+ *\r
+ * @param authorized flag indicating whether the response carried a permit response (<code>true</code>)\r
+ * or something else (<code>false</code>).\r
+ * @param advice list of advice elements returned in the response.\r
+ * @param obligations list of obligation elements returned in the response.\r
+ */\r
+ private AuthRespImpl(boolean authorized, List<AuthorizationResponseSupplement> advice,\r
+ List<AuthorizationResponseSupplement> obligations) {\r
+ this.authorized = authorized;\r
+ this.advice = (advice == null ? null : new ArrayList<>(advice));\r
+ this.obligations = (obligations == null ? null : new ArrayList<>(obligations));\r
+ }\r
+\r
+ /** Constructor. Simple version for authorization responses that have no advice and no obligations.\r
+ *\r
+ * @param authorized flag indicating whether the response carried a permit (<code>true</code>)\r
+ * or something else (<code>false</code>).\r
+ */\r
+ AuthRespImpl(boolean authorized) {\r
+ this(authorized, null, null);\r
+ }\r