Class CloudAuthManager.CloudStatus

java.lang.Object
com.ultikits.ultitools.utils.CloudAuthManager.CloudStatus
Enclosing class:
CloudAuthManager

public static final class CloudAuthManager.CloudStatus extends Object
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 Details

    • connected

      private final boolean connected
    • linked

      private final boolean linked
    • serverName

      private final String serverName
    • serverId

      private final String serverId
    • connectionDescription

      private final String connectionDescription
  • Constructor Details

    • CloudStatus

      private CloudStatus(boolean connected, boolean linked, String serverName, String serverId, String connectionDescription)
  • Method Details

    • getConnectionDescription

      public String getConnectionDescription()
      Returns:
      a description of the current connection for the operator
      Since:
      6.3.1
    • isConnected

      public boolean isConnected()
      Returns:
      true only while the current agent connection is open
    • getUserName

      @Deprecated(since="6.3.1", forRemoval=true) public String getUserName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use getServerName() or getServerId() instead; removed in 6.4.0.
      Returns:
      null; protocol v2 holds no user token
      Scheduled removal version:
      6.4.0
    • getExpirationDate

      @Deprecated(since="6.3.1", forRemoval=true) public Date getExpirationDate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use getServerName() or getServerId() 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:
      true if this server holds a protocol v2 server credential
      Since:
      6.3.1
    • getServerName

      public String getServerName()
      Returns:
      the linked server's name as chosen on the confirmation page, or null if not linked or no name was returned
      Since:
      6.3.1
    • getServerId

      public String getServerId()
      Returns:
      the linked server's public id, or null if not linked
      Since:
      6.3.1