Class ServerKey

java.lang.Object
com.iizix.server.security.ServerKey

public class ServerKey extends Object
The server key that is used for encryption.
Author:
Christopher Mindus
  • Method Details

    • getFingerPrint

      public String getFingerPrint()
      Gets the fingerprint of this key for use with the client. The fingerprint is SHA-512, SHA-384, SHA-256, SHA-1 or worst case MD5. The highest fingerprint is always attempted.
      Returns:
      The fingerprint is a message digest base64 encoded string.
    • equals

      public boolean equals(Object o)
      Checks if two keys are equal, the timestamp is ignored.
      Overrides:
      equals in class Object
      Parameters:
      o - The other key.
      Returns:
      true if equal, false otherwise.
    • hashCode

      public int hashCode()
      Gets the hash code.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code, the timestamp is ignored.
    • toString

      public String toString()
      Gets the key as a debug string.
      Overrides:
      toString in class Object
      Returns:
      The String as className[fingerPrint=NN,timeStamp=TS]