b5796d2a6f395907180f26c0a70ed5d9789f493e
[controller.git] / opendaylight / samples / clustersession / src / main / java / org / opendaylight / controller / clustersession / ClusterSessionData.java
1 package org.opendaylight.controller.clustersession;
2
3 import java.io.Serializable;
4 import java.util.Arrays;
5
6 public class ClusterSessionData implements Serializable{
7
8   private static final long serialVersionUID = 1L;
9
10   private ClusterSession session;
11
12   private byte[] principalData;
13
14   private byte[] savedRequestData;
15
16   private byte[] savedPrincipalData;
17
18   private String authType;
19
20   private String userName;
21
22   private String password;
23
24   public ClusterSession getSession() {
25     return session;
26   }
27
28   public void setSession(final ClusterSession session) {
29     this.session = session;
30   }
31
32   public byte[] getPrincipalData() {
33     return principalData;
34   }
35
36   public void setPrincipalData(final byte[] principalData) {
37     this.principalData = Arrays.copyOf(principalData, principalData.length);
38   }
39
40   public String getAuthType() {
41     return authType;
42   }
43
44   public void setAuthType(String authType) {
45     this.authType = authType;
46   }
47
48   public byte[] getSavedRequestData() {
49     return savedRequestData;
50   }
51
52   public void setSavedRequestData(byte[] savedRequestData) {
53     this.savedRequestData = Arrays.copyOf(savedRequestData, savedRequestData.length);
54   }
55
56   public byte[] getSavedPrincipalData() {
57     return savedPrincipalData;
58   }
59
60   public void setSavedPrincipalData(byte[] savedPrincipalData) {
61     this.savedPrincipalData = Arrays.copyOf(savedPrincipalData, savedPrincipalData.length);
62   }
63
64   public String getUserName() {
65     return userName;
66   }
67
68   public void setUserName(String userName) {
69     this.userName = userName;
70   }
71
72   public String getPassword() {
73     return password;
74   }
75
76   public void setPassword(String password) {
77     this.password = password;
78   }
79 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.