GUACAMOLE-96: Add protected convenience method for retrieving delegate object.

This commit is contained in:
Michael Jumper
2018-10-04 20:02:00 -07:00
parent 7fcb506711
commit 11c1d8c97e
8 changed files with 74 additions and 7 deletions

View File

@@ -41,11 +41,6 @@ public class TOTPUser extends DelegatingUser {
*/
public static final String TOTP_KEY_CONFIRMED_ATTRIBUTE_NAME = "guac-totp-key-confirmed";
/**
* The User object wrapped by this TOTPUser.
*/
private final User undecorated;
/**
* Wraps the given User object, hiding and blocking access to the core
* attributes used by TOTP.
@@ -55,7 +50,6 @@ public class TOTPUser extends DelegatingUser {
*/
public TOTPUser(User user) {
super(user);
this.undecorated = user;
}
/**
@@ -65,7 +59,7 @@ public class TOTPUser extends DelegatingUser {
* The wrapped User object.
*/
public User getUndecorated() {
return undecorated;
return getDelegateUser();
}
@Override