2 * Copyright IBM Corporation, 2015. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.spi;
11 import java.io.Serializable;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
19 @XmlAccessorType(XmlAccessType.NONE)
20 public class NeutronVPNIKEPolicy implements Serializable, INeutronObject {
21 private static final long serialVersionUID = 1L;
23 // See OpenStack Network API v2.0 Reference for description of
24 // annotated attributes
26 @XmlElement (name = "id")
29 @XmlElement (name = "tenant_id")
32 @XmlElement (name = "name")
35 @XmlElement (name = "description")
38 @XmlElement (name = "auth_algorithm")
41 @XmlElement (name = "encryption_algorithm")
42 String encryptionAlgorithm;
44 @XmlElement (name = "phase1_negotiation_mode")
45 String phase1NegotiationMode;
47 @XmlElement (name = "pfs")
48 String perfectForwardSecrecy;
50 @XmlElement (name = "ike_version")
53 @XmlElement (name = "lifetime")
54 NeutronVPNLifetime lifetime;
56 public NeutronVPNIKEPolicy() {
59 public String getID() {
63 public void setID(String id) {
67 public String getTenantID() {
71 public void setTenantID(String tenantID) {
72 this.tenantID = tenantID;
75 public String getName() {
79 public void setName(String name) {
83 public String getDescription() {
87 public void setDescription(String description) {
88 this.description = description;
91 public String getAuthAlgorithm() {
95 public void setAuthAlgorithm(String authAlgorithm) {
96 this.authAlgorithm = authAlgorithm;
99 public String getEncryptionAlgorithm() {
100 return encryptionAlgorithm;
103 public void setEncryptionAlgorithm(String encryptionAlgorithm) {
104 this.encryptionAlgorithm = encryptionAlgorithm;
107 public String getPhase1NegotiationMode() {
108 return phase1NegotiationMode;
111 public void setPhase1NegotiationMode(String phase1NegotiationMode) {
112 this.phase1NegotiationMode = phase1NegotiationMode;
115 public String getPerfectForwardSecrecy() {
116 return perfectForwardSecrecy;
119 public void setPerfectForwardSecrecy(String perfectForwardSecrecy) {
120 this.perfectForwardSecrecy = perfectForwardSecrecy;
123 public String getIkeVersion() {
127 public void setIkeVersion(String ikeVersion) {
128 this.ikeVersion = ikeVersion;
131 public NeutronVPNLifetime getLifetime() {
135 public void setLifetime(NeutronVPNLifetime lifetime) {
136 this.lifetime = lifetime;