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