Class AbstractKey

java.lang.Object
com.exonum.binding.common.crypto.AbstractKey
Direct Known Subclasses:
PrivateKey, PublicKey

public abstract class AbstractKey
extends java.lang.Object
Represent either a private or public key in a digital signature system.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    static Funnel<AbstractKey> keyFunnel()
    Returns a funnel for any key.
    int size()
    Returns the length of this key in bytes.
    byte[] toBytes()
    Returns the value of this key as a byte array.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • toBytes

      public byte[] toBytes()
      Returns the value of this key as a byte array.
    • size

      public int size()
      Returns the length of this key in bytes.
    • equals

      public final boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • keyFunnel

      public static Funnel<AbstractKey> keyFunnel()
      Returns a funnel for any key.