Package com.exonum.binding.common.crypto
Class AbstractKey
- java.lang.Object
-
- com.exonum.binding.common.crypto.AbstractKey
-
- Direct Known Subclasses:
PrivateKey,PublicKey
public abstract class AbstractKey extends java.lang.ObjectRepresent either a private or public key in a digital signature system.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()intsize()Returns the length of this key in bytes.byte[]toBytes()Returns the value of this key as a byte array.java.lang.StringtoString()
-
-
-
Method Detail
-
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:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-