Package com.ultikits.ultitools.utils
Class CloudAuthManager.CloudStatus
java.lang.Object
com.ultikits.ultitools.utils.CloudAuthManager.CloudStatus
- Enclosing class:
CloudAuthManager
An immutable view of
CloudAuthManager.status()'s result. Deliberately carries only the fields
/ulticloud status actually prints -- never a TokenEntity reference -- so this
type cannot become a second way to leak the token past the D-18 guard.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCloudStatus(boolean connected, boolean linked, String serverName, String serverId, String connectionDescription) -
Method Summary
-
Field Details
-
connected
private final boolean connected -
linked
private final boolean linked -
serverName
-
serverId
-
connectionDescription
-
-
Constructor Details
-
CloudStatus
-
-
Method Details
-
getConnectionDescription
- Returns:
- a description of the current connection for the operator
- Since:
- 6.3.1
-
isConnected
public boolean isConnected()- Returns:
trueonly while the current agent connection is open
-
isLinked
public boolean isLinked()- Returns:
trueif this server holds a protocol v2 server credential- Since:
- 6.3.1
-
getServerName
- Returns:
- the linked server's name as chosen on the confirmation page, or
nullif not linked or no name was returned - Since:
- 6.3.1
-
getServerId
- Returns:
- the linked server's public id, or
nullif not linked - Since:
- 6.3.1
-