cdcd6c74bb113454c2fc4e19e38e0dbd6edc7f41
[cdm-vaadin.git] / src / main / java / eu / etaxonomy / cdm / vaadin / event / AuthenticationAttemptEvent.java
1 /**
2 * Copyright (C) 2017 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.cdm.vaadin.event;
10
11 import com.vaadin.ui.Button.ClickEvent;
12
13 /**
14 * This Event must not undisclose the password when published on
15 * the event bus. therefore it does not contain the password.
16 *
17 * @author a.kohlbecker
18 * @since Apr 25, 2017
19 *
20 */
21 public class AuthenticationAttemptEvent implements AuthenticationEvent{
22
23 ClickEvent e;
24 String userName;
25
26 /**
27 * @param e
28 * @param userName
29 */
30 public AuthenticationAttemptEvent(ClickEvent e, String userName) {
31 this.e = e;
32 this.userName = userName;
33 }
34
35 /**
36 * @return the e
37 */
38 public ClickEvent getE() {
39 return e;
40 }
41
42 /**
43 * @return the userName
44 */
45 public String getUserName() {
46 return userName;
47 }
48
49
50
51 }