Package org.drasyl.identity
Class CompressedKeyPair
java.lang.Object
org.drasyl.identity.CompressedKeyPair
This class is a simple holder for a compressed key pair (a
CompressedPublicKey
and a
CompressedPrivateKey
). It does not enforce any security, and, when initialized, should be
treated like a CompressedPrivateKey
.
This is an immutable object.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static CompressedKeyPair
static CompressedKeyPair
static CompressedKeyPair
of
(PublicKey publicKey, PrivateKey privateKey) static CompressedKeyPair
of
(CompressedPublicKey publicKey, CompressedPrivateKey privateKey) toString()
-
Method Details
-
getPublicKey
-
getPrivateKey
-
toUncompressedKeyPair
- Throws:
CryptoException
-
hashCode
public int hashCode() -
equals
-
toString
-
of
-
of
- Throws:
CryptoException
-
of
- Throws:
CryptoException
-
of
public static CompressedKeyPair of(PublicKey publicKey, PrivateKey privateKey) throws CryptoException - Throws:
CryptoException
-