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;
}
Aggregations