Record Class PqcClientCryptoUtil.GeneratedKeyPair
- Record Components:
publicKey
- the generated public keyprivateKey
- the generated private keypublicKeyBase64
- the Base64-encoded public keyprivateKeyBase64
- the Base64-encoded private key
- Enclosing class:
PqcClientCryptoUtil
public static record PqcClientCryptoUtil.GeneratedKeyPair(PublicKey publicKey, PrivateKey privateKey, String publicKeyBase64, String privateKeyBase64)
extends Record
A record containing both raw key objects (public, private) and their
Base64-encoded forms. Useful if you need to store or transmit keys
outside a keystore.
- Version:
- 1.0
- Author:
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedKeyPair
(PublicKey publicKey, PrivateKey privateKey, String publicKeyBase64, String privateKeyBase64) Creates an instance of aGeneratedKeyPair
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theprivateKey
record component.Returns the value of theprivateKeyBase64
record component.Returns the value of thepublicKey
record component.Returns the value of thepublicKeyBase64
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GeneratedKeyPair
public GeneratedKeyPair(PublicKey publicKey, PrivateKey privateKey, String publicKeyBase64, String privateKeyBase64) Creates an instance of aGeneratedKeyPair
record class.- Parameters:
publicKey
- the value for thepublicKey
record componentprivateKey
- the value for theprivateKey
record componentpublicKeyBase64
- the value for thepublicKeyBase64
record componentprivateKeyBase64
- the value for theprivateKeyBase64
record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
publicKey
-
privateKey
Returns the value of theprivateKey
record component.- Returns:
- the value of the
privateKey
record component
-
publicKeyBase64
Returns the value of thepublicKeyBase64
record component.- Returns:
- the value of the
publicKeyBase64
record component
-
privateKeyBase64
Returns the value of theprivateKeyBase64
record component.- Returns:
- the value of the
privateKeyBase64
record component
-