Search in sources :

Example 1 with DisableGoogleAuthenticatorCredentialClickListener

use of com.hack23.cia.web.impl.ui.application.views.pageclicklistener.DisableGoogleAuthenticatorCredentialClickListener in project cia by Hack23.

the class UserHomeSecuritySettingsPageModContentFactoryImpl method createDisableGoogleAuthButton.

private static Button createDisableGoogleAuthButton() {
    final Button googleAuthButton = new Button(DISABLE_GOOGLE_AUTHENTICATOR, VaadinIcons.SAFE_LOCK);
    googleAuthButton.setId(DISABLE_GOOGLE_AUTHENTICATOR);
    final DisableGoogleAuthenticatorCredentialRequest googleAuthRequest = new DisableGoogleAuthenticatorCredentialRequest();
    googleAuthRequest.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
    googleAuthButton.addClickListener(new DisableGoogleAuthenticatorCredentialClickListener(googleAuthRequest));
    return googleAuthButton;
}
Also used : DisableGoogleAuthenticatorCredentialRequest(com.hack23.cia.service.api.action.user.DisableGoogleAuthenticatorCredentialRequest) Button(com.vaadin.ui.Button) DisableGoogleAuthenticatorCredentialClickListener(com.hack23.cia.web.impl.ui.application.views.pageclicklistener.DisableGoogleAuthenticatorCredentialClickListener)

Aggregations

DisableGoogleAuthenticatorCredentialRequest (com.hack23.cia.service.api.action.user.DisableGoogleAuthenticatorCredentialRequest)1 DisableGoogleAuthenticatorCredentialClickListener (com.hack23.cia.web.impl.ui.application.views.pageclicklistener.DisableGoogleAuthenticatorCredentialClickListener)1 Button (com.vaadin.ui.Button)1