Package com.dracoon.sdk.crypto.model
Class UserKeyPair
java.lang.Object
com.dracoon.sdk.crypto.model.UserKeyPair
User key pair model.
This model holds the user's private and public key.
This model holds the user's private and public key.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable user key pair versions. -
Constructor Summary
ConstructorsConstructorDescriptionUserKeyPair(UserPrivateKey userPrivateKey, UserPublicKey userPublicKey) Constructs a new user key pair. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user's private key.Returns the user's public key.
-
Constructor Details
-
UserKeyPair
public UserKeyPair(UserPrivateKey userPrivateKey, UserPublicKey userPublicKey) throws IllegalArgumentException Constructs a new user key pair.- Parameters:
userPrivateKey- The user's private key.userPublicKey- The user's public key.- Throws:
IllegalArgumentException- If a parameter is invalid (e.g. null or empty).
-
-
Method Details
-
getUserPrivateKey
Returns the user's private key.- Returns:
- the private key
-
getUserPublicKey
Returns the user's public key.- Returns:
- the public key
-