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
    • 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