1 /*
2 * Copyright (c) 2002-2017, Mairie de Paris
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright notice
10 * and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright notice
13 * and the following disclaimer in the documentation and/or other materials
14 * provided with the distribution.
15 *
16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 *
32 * License 1.0
33 */
34
35 package fr.paris.lutece.plugins.fccertifier.service;
36
37 import fr.paris.lutece.plugins.fccertifier.business.FcIdentity;
38
39 /**
40 * ValidationInfos
41 */
42 public class ValidationInfos
43 {
44 // Variables declarations
45 private String _strUserEmail;
46 private String _strUserConnectionId;
47 private FcIdentity _identity;
48 private long _expiresTime;
49 private int _nInvalidAttempts;
50
51 /**
52 * Returns the FC FcIdentity
53 *
54 * @return The FC FcIdentity
55 */
56 public FcIdentity getFCUserInfo( )
57 {
58 return _identity;
59 }
60
61 /**
62 * Sets the FCUserInfo
63 *
64 * @param userInfo
65 * The FC FcIdentity
66 */
67 public void setFCUserInfo( FcIdentity userInfo )
68 {
69 _identity = userInfo;
70 }
71
72 /**
73 * Returns the UserConnectionId
74 *
75 * @return The UserConnectionId
76 */
77 public String getUserConnectionId( )
78 {
79 return _strUserConnectionId;
80 }
81
82 /**
83 * @return the _strUserEmail
84 */
85 public String getUserEmail( )
86 {
87 return _strUserEmail;
88 }
89
90 /**
91 * @param strUserEmail
92 * the _strUserEmail to set
93 */
94 public void setUserEmail( String strUserEmail )
95 {
96 _strUserEmail = strUserEmail;
97 }
98
99 /**
100 * Sets the UserConnectionId
101 *
102 * @param strUserConnectionId
103 * The UserConnectionId
104 */
105 public void setUserConnectionId( String strUserConnectionId )
106 {
107 _strUserConnectionId = strUserConnectionId;
108 }
109
110 /**
111 * Returns the expiresTime
112 *
113 * @return The expiresTime
114 */
115 public long getExpiresTime( )
116 {
117 return _expiresTime;
118 }
119
120 /**
121 * Sets the expiresTime
122 *
123 * @param expiresTime
124 * The expiresTime
125 */
126 public void setExpiresTime( long expiresTime )
127 {
128 _expiresTime = expiresTime;
129 }
130
131 /**
132 * Returns the InvalidAttempts
133 *
134 * @return The InvalidAttempts
135 */
136 public int getInvalidAttempts( )
137 {
138 return _nInvalidAttempts;
139 }
140
141 /**
142 * Sets the InvalidAttempts
143 *
144 * @param nInvalidAttempts
145 * The InvalidAttempts
146 */
147 public void setInvalidAttempts( int nInvalidAttempts )
148 {
149 _nInvalidAttempts = nInvalidAttempts;
150 }
151 }