mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1298: Migrate to centralized declarations of common dependencies.
This commit is contained in:
@@ -35,7 +35,6 @@ import org.apache.guacamole.auth.totp.user.UserTOTPKey;
|
||||
import org.apache.guacamole.auth.totp.conf.ConfigurationService;
|
||||
import org.apache.guacamole.form.Field;
|
||||
import org.apache.guacamole.totp.TOTPGenerator;
|
||||
import org.codehaus.jackson.annotate.JsonProperty;
|
||||
|
||||
/**
|
||||
* Field which prompts the user for an authentication code generated via TOTP.
|
||||
@@ -242,8 +241,7 @@ public class AuthenticationCodeField extends Field {
|
||||
* If the configuration information required for generating the key URI
|
||||
* cannot be read from guacamole.properties.
|
||||
*/
|
||||
@JsonProperty("keyUri")
|
||||
public URI getKeyURI() throws GuacamoleException {
|
||||
public URI getKeyUri() throws GuacamoleException {
|
||||
|
||||
// Do not generate a key URI if no key is being exposed
|
||||
if (key == null)
|
||||
@@ -276,11 +274,10 @@ public class AuthenticationCodeField extends Field {
|
||||
* If the configuration information required for generating the QR code
|
||||
* cannot be read from guacamole.properties.
|
||||
*/
|
||||
@JsonProperty("qrCode")
|
||||
public String getQRCode() throws GuacamoleException {
|
||||
public String getQrCode() throws GuacamoleException {
|
||||
|
||||
// Do not generate a QR code if no key is being exposed
|
||||
URI keyURI = getKeyURI();
|
||||
URI keyURI = getKeyUri();
|
||||
if (keyURI == null)
|
||||
return null;
|
||||
|
||||
|
Reference in New Issue
Block a user