Record Class PqcClientCryptoUtil.GeneratedKeyPair
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.sdk.util.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 aGeneratedKeyPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprivateKeyrecord component.Returns the value of theprivateKeyBase64record component.Returns the value of thepublicKeyrecord component.Returns the value of thepublicKeyBase64record component.final StringtoString()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 aGeneratedKeyPairrecord class.- Parameters:
publicKey- the value for thepublicKeyrecord componentprivateKey- the value for theprivateKeyrecord componentpublicKeyBase64- the value for thepublicKeyBase64record componentprivateKeyBase64- the value for theprivateKeyBase64record 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 theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
publicKeyBase64
Returns the value of thepublicKeyBase64record component.- Returns:
- the value of the
publicKeyBase64record component
-
privateKeyBase64
Returns the value of theprivateKeyBase64record component.- Returns:
- the value of the
privateKeyBase64record component
-