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 SummaryModifier and TypeMethodDescriptionbooleaninthashCode()static CompressedKeyPairstatic CompressedKeyPairstatic CompressedKeyPairof(PublicKey publicKey, PrivateKey privateKey) static CompressedKeyPairof(CompressedPublicKey publicKey, CompressedPrivateKey privateKey) toString()
- 
Method Details- 
getPublicKey
- 
getPrivateKey
- 
toUncompressedKeyPair- Throws:
- CryptoException
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
of
- 
of- Throws:
- CryptoException
 
- 
of- Throws:
- CryptoException
 
- 
ofpublic static CompressedKeyPair of(PublicKey publicKey, PrivateKey privateKey) throws CryptoException - Throws:
- CryptoException
 
 
-