+++ /dev/null
-/*******************************************************************************\r
- * ============LICENSE_START==================================================\r
- * * org.onap.dmaap\r
- * * ===========================================================================\r
- * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * * ===========================================================================\r
- * * 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
- * * http://www.apache.org/licenses/LICENSE-2.0\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
- * * See the License for the specific language governing permissions and\r
- * * limitations under the License.\r
- * * ============LICENSE_END====================================================\r
- * *\r
- * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
- * *\r
- ******************************************************************************/\r
-\r
-\r
-package org.onap.dmaap.datarouter.authz.impl;\r
-\r
-import java.util.HashMap;\r
-import java.util.Map;\r
-\r
-import org.onap.dmaap.datarouter.authz.AuthorizationResponseSupplement;\r
-\r
-/** Carries supplementary information--an advice or an obligation--from the authorization response returned\r
- * by a XACML Policy Decision Point. Not used in Data Router R1.\r
- * @author J. F. Lucas\r
- *\r
- */\r
-public class AuthRespSupplementImpl implements AuthorizationResponseSupplement {\r
-\r
- private String id;\r
- private Map<String, String> attributes;\r
-\r
- /** Constructor, available within the package.\r
- *\r
- * @param id The identifier for the advice or obligation element\r
- * @param attributes The attributes (name-value pairs) for the advice or obligation element.\r
- */\r
- AuthRespSupplementImpl(String id, Map<String, String> attributes) {\r
- this.id = id;\r
- this.attributes = new HashMap<>(attributes);\r
- }\r
-\r
- /** Return the identifier for the supplementary information element.\r
- *\r
- * @return a <code>String</code> containing the identifier.\r
- */\r
- @Override\r
- public String getId() {\r
- return id;\r
- }\r
-\r
- /** Return the attributes for the supplementary information element, as a <code>Map</code> in which\r
- * keys represent attribute identifiers and values represent attribute values.\r
- *\r
- * @return attributes for the supplementary information element.\r
- */\r
- @Override\r
- public Map<String, String> getAttributes() {\r
- return attributes;\r
- }\r
-\r
-}\r