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
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UsegetServerName()orgetServerId()instead; removed in 6.4.0.booleanbooleanisLinked()
-
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
-
getUserName
Deprecated, for removal: This API element is subject to removal in a future version.UsegetServerName()orgetServerId()instead; removed in 6.4.0.- Returns:
null; protocol v2 holds no user token- Scheduled removal version:
- 6.4.0
-
getExpirationDate
Deprecated, for removal: This API element is subject to removal in a future version.UsegetServerName()orgetServerId()for identity instead; removed in 6.4.0.- Returns:
null; the server credential never expires- Scheduled removal version:
- 6.4.0
-
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
-
getServerName()orgetServerId()for identity instead; removed in 6.4.0.