Record Class UnlockMaterial.Private
java.lang.Object
java.lang.Record
zeroecho.sdk.guard.UnlockMaterial.Private
- Record Components:
key- non-null private key
- All Implemented Interfaces:
Describable, UnlockMaterial
- Enclosing interface:
UnlockMaterial
public static record UnlockMaterial.Private(PrivateKey key)
extends Record
implements UnlockMaterial
Private key unlocking material.
-
Nested Class Summary
Nested classes/interfaces inherited from interface UnlockMaterial
UnlockMaterial.Password, UnlockMaterial.Private -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a short, human-readable description of this object.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Private
Validates the key.
-
-
Method Details
-
description
Returns a short, human-readable description of this object.The description should be concise and stable enough for logging or display purposes, while avoiding exposure of any sensitive information.
- Specified by:
descriptionin interfaceDescribable- Returns:
- non-null descriptive string
-
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). -
key
-