2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.guard;
24 import com.att.research.xacml.std.annotations.XACMLAction;
25 import com.att.research.xacml.std.annotations.XACMLRequest;
26 import com.att.research.xacml.std.annotations.XACMLResource;
27 import com.att.research.xacml.std.annotations.XACMLSubject;
31 @XACMLRequest(ReturnPolicyIdList=true,CombinedDecision=true)
32 public class PolicyGuardXacmlRequestAttributes {
37 public PolicyGuardXacmlRequestAttributes(String actor_id, String operation_id, String target_id,
40 this.actor_id = actor_id;
41 this.operation_id = operation_id;
42 this.target_id = target_id;
43 this.request_id = request_id;
49 public String toString() {
50 return "PolicyGuardXacmlRequestAttributes [actor_id=" + actor_id + ", operation_id=" + operation_id
51 + ", target_id=" + target_id + ", request_id=" + request_id + "]";
56 //@XACMLSubject(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id")
62 @XACMLSubject(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:actor:actor-id")
65 @XACMLAction(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:operation:operation-id")
68 //@XACMLResource(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id123")
71 @XACMLResource(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:target:target-id")
74 @XACMLResource(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:request:request-id")
77 public String getActor_id() {
83 public void setActor_id(String actor_id) {
84 this.actor_id = actor_id;
89 public String getOperation_id() {
95 public void setOperation_id(String operation_id) {
96 this.operation_id = operation_id;
101 public String getTarget_id() {
107 public void setTarget_id(String target_id) {
108 this.target_id = target_id;
113 public String getRequest_id() {
119 public void setRequest_id(String request_id) {
120 this.request_id = request_id;