You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2018/07/02 06:20:09 UTC
[05/10] guacamole-client git commit: GUACAMOLE-540: Restore removed
setter methods in Credentials.
GUACAMOLE-540: Restore removed setter methods in Credentials.
Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/fb1efec0
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/fb1efec0
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/fb1efec0
Branch: refs/heads/master
Commit: fb1efec056df5ceac704d1d175a80e6a2554828c
Parents: a0d0e07
Author: Nick Couchman <vn...@apache.org>
Authored: Sat Jun 16 08:04:12 2018 -0400
Committer: Nick Couchman <vn...@apache.org>
Committed: Sat Jun 16 08:06:13 2018 -0400
----------------------------------------------------------------------
.../apache/guacamole/net/auth/Credentials.java | 26 ++++++++++++++++++++
1 file changed, 26 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/fb1efec0/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Credentials.java
----------------------------------------------------------------------
diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Credentials.java b/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Credentials.java
index 810e320..64f9571 100644
--- a/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Credentials.java
+++ b/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Credentials.java
@@ -227,6 +227,18 @@ public class Credentials implements Serializable {
public String getRemoteAddress() {
return remoteAddress;
}
+
+ /**
+ * Sets the address of the client end of the connection which provided
+ * these credentials.
+ *
+ * @param remoteAddress
+ * The address of the client end of the connection which provided these
+ * credentials, or null if the address is not known.
+ */
+ public void setRemoteAddress(String remoteAddress) {
+ this.remoteAddress = remoteAddress;
+ }
/**
* Returns the hostname of the client end of the connection which provided
@@ -241,5 +253,19 @@ public class Credentials implements Serializable {
public String getRemoteHostname() {
return remoteHostname;
}
+
+ /**
+ * Sets the hostname of the client end of the connection which provided
+ * these credentials, if known. If the hostname of the client cannot be
+ * determined, but the address is known, the address may be specified
+ * instead.
+ *
+ * @param remoteHostname
+ * The hostname or address of the client end of the connection which
+ * provided these credentials, or null if the hostname is not known.
+ */
+ public void setRemoteHostname(String remoteHostname) {
+ this.remoteHostname = remoteHostname;
+ }
}