Package co.ankatech.ankasecure.sdk.util
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 key
- Enclosing class:
- PqcClientCryptoUtil
public static record PqcClientCryptoUtil.GeneratedKeyPair(PublicKey publicKey, PrivateKey privateKey, String publicKeyBase64)
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.
SDK-002 (secure-memory-cutover Slice 3): the previous privateKeyBase64
component has been REMOVED. It was unused by callers and represented a long-lived
cleartext copy of the ML-KEM private key as a String (interned-eligible,
impossible to clear). Greenfield rule: the field is deleted, not deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedKeyPair(PublicKey publicKey, PrivateKey privateKey, String publicKeyBase64) 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 thepublicKeyrecord component.Returns the value of thepublicKeyBase64record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratedKeyPair
Creates an instance of aGeneratedKeyPairrecord class.- Parameters:
publicKey- the value for thepublicKeyrecord componentprivateKey- the value for theprivateKeyrecord componentpublicKeyBase64- the value for thepublicKeyBase64record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thepublicKeyrecord component.- Returns:
- the value of the
publicKeyrecord component
-
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
-