4ce35f20987516ab8f10e67e4a24c5bed8c1b2e0
[policy/distribution.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Ericsson. All rights reserved.
4  *  Modifications Copyright (C) 2019 AT&T Intellectual Property.
5  *  Modifications Copyright (C) 2019 Nordix Foundation.
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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  *
19  * SPDX-License-Identifier: Apache-2.0
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.policy.distribution.forwarding.xacml.pdp;
24
25 import lombok.Getter;
26
27 import org.onap.policy.common.parameters.annotations.Min;
28 import org.onap.policy.common.parameters.annotations.NotBlank;
29 import org.onap.policy.common.parameters.annotations.NotNull;
30 import org.onap.policy.distribution.main.parameters.PolicyForwarderConfigurationParameterGroup;
31
32 /**
33  * Holds the parameters for the{@link XacmlPdpPolicyForwarder}.
34  */
35 @Getter
36 @NotNull
37 @NotBlank
38 public class XacmlPdpPolicyForwarderParameterGroup extends PolicyForwarderConfigurationParameterGroup {
39     public static final String POLICY_FORWARDER_PLUGIN_CLASS = XacmlPdpPolicyForwarder.class.getName();
40
41     private boolean useHttps;
42     private String hostname;
43     @Min(value = 1)
44     private int port;
45     private String userName;
46     private String password;
47     private String clientAuth;
48     private boolean isManaged;
49     private String pdpGroup;
50
51     public XacmlPdpPolicyForwarderParameterGroup() {
52         super(XacmlPdpPolicyForwarderParameterGroup.class.getSimpleName());
53     }
54 }