Package org.drasyl.identity
Class KeyPair<P extends PublicKey,S extends SecretKey>
- java.lang.Object
-
- org.drasyl.identity.KeyPair<P,S>
-
public abstract class KeyPair<P extends PublicKey,S extends SecretKey> extends Object
This class is a simple holder for a key pair (aIdentityPublicKey
and aIdentitySecretKey
). It does not enforce any security, and, when initialized, should be treated like aIdentitySecretKey
.This is an immutable object.
-
-
Constructor Summary
Constructors Constructor Description KeyPair()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract P
getPublicKey()
abstract S
getSecretKey()
static <P extends PublicKey,S extends SecretKey>
KeyPair<P,S>of(P publicKey, S secretKey)
-