Package com.dracoon.sdk.crypto.model
Class UserPrivateKey
java.lang.Object
com.dracoon.sdk.crypto.model.UserPrivateKey
User private key model.
This model holds private key data.
This model holds private key data.
-
Constructor Summary
ConstructorsConstructorDescriptionUserPrivateKey(UserKeyPair.Version version, char[] privateKey) Constructs a new user private key. -
Method Summary
Modifier and TypeMethodDescriptionchar[]Returns the PEM encoded private key.Returns the private key version.
-
Constructor Details
-
UserPrivateKey
public UserPrivateKey(UserKeyPair.Version version, char[] privateKey) throws IllegalArgumentException Constructs a new user private key.- Parameters:
version- The private key version.privateKey- The PEM encoded private key.- Throws:
IllegalArgumentException- If a parameter is invalid (e.g. null or empty).
-
-
Method Details
-
getVersion
Returns the private key version.- Returns:
- the version
-
getPrivateKey
public char[] getPrivateKey()Returns the PEM encoded private key.- Returns:
- the private key
-