Class RemoteService

java.lang.Object
io.bdeploy.common.security.RemoteService
All Implemented Interfaces:
Serializable

public class RemoteService extends Object implements Serializable
Represents data about a single known minion.
See Also:
  • Constructor Details

    • RemoteService

      public RemoteService(URI uri)
      Creates a RemoteService which references a local directory as URI.
      Parameters:
      uri - a local URI (file, zip, ...) to fake a remote service for
    • RemoteService

      public RemoteService(URI uri, String authPack)
      Parameters:
      uri - the URI to the service
      authPack - the authentication pack (token and certificate) used to access the RemoteService.
    • RemoteService

      public RemoteService(URI uri, KeyStoreProvider provider)
      Creates a new RemoteService with the given KeyStoreProvider.
  • Method Details

    • getKeyStore

      public KeyStoreProvider getKeyStore()
      Returns:
      the provider for key material.
    • getUri

      public URI getUri()
      Returns:
      the service URI
    • getAuthPack

      public String getAuthPack()
      Returns:
      the security token
    • getWebSocketUri

      public URI getWebSocketUri(String path)
      Returns:
      a URI which can be used to connect to WebSockets on the given remote, following the standard pattern
    • hashCode

      @Generated("Eclipse") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      @Generated("Eclipse") public boolean equals(Object obj)
      Overrides:
      equals in class Object