use of com.hack23.cia.web.impl.ui.application.views.pageclicklistener.SetGoogleAuthenticatorCredentialClickListener in project cia by Hack23.
the class UserHomeSecuritySettingsPageModContentFactoryImpl method createEnableGoogleAuthButton.
private static Button createEnableGoogleAuthButton() {
final Button googleAuthButton = new Button(ENABLE_GOOGLE_AUTHENTICATOR, VaadinIcons.SAFE_LOCK);
googleAuthButton.setId(ENABLE_GOOGLE_AUTHENTICATOR);
final SetGoogleAuthenticatorCredentialRequest googleAuthRequest = new SetGoogleAuthenticatorCredentialRequest();
googleAuthRequest.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
googleAuthButton.addClickListener(new SetGoogleAuthenticatorCredentialClickListener(googleAuthRequest));
return googleAuthButton;
}
Aggregations