Class ServerKey


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Checks if two keys are equal, the timestamp is ignored.
      java.lang.String getFingerPrint()
      Gets the fingerprint of this key for use with the client.
      int hashCode()
      Gets the hash code.
      java.lang.String toString()
      Gets the key as a debug string.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getFingerPrint

        public java.lang.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​(java.lang.Object o)
        Checks if two keys are equal, the timestamp is ignored.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - The other key.
        Returns:
        true if equal, false otherwise.
      • hashCode

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

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