Class Credentials

java.lang.Object
de.iip_ecosphere.platform.deviceMgt.Credentials

public class Credentials extends Object
Credentials data class.
Author:
Dennis Pidun, University of Hildesheim
  • Field Details

  • Constructor Details

    • Credentials

      public Credentials(String key, String secret)
      Constructor for the credentials.
      Parameters:
      key - the key
      secret - the secret
    • Credentials

      public Credentials()
      Default constructor, is used for (de-)serialization.
  • Method Details

    • getKey

      public String getKey()
      Get the key.
      Returns:
      the key
    • setKey

      public void setKey(String key)
      Sets the key. Method is used for deserialization.
      Parameters:
      key - the key
    • getSecret

      public String getSecret()
      Get the secret.
      Returns:
      the secret
    • setSecret

      public void setSecret(String secret)
      Sets the secret. Method is used for deserialization.
      Parameters:
      secret - the secret
    • toString

      public String toString()
      To string method.
      Overrides:
      toString in class Object
      Returns:
      string containing key and secret