Package co.cryptoservice.sdk
Record Class KeyMetadata
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.KeyMetadata
- Record Components:
exp- the expiry, or nullkid- the key identifieruse-sigorenc, or null
The
metadata member.-
Constructor Summary
ConstructorsConstructorDescriptionKeyMetadata(String exp, String kid, String use) Creates an instance of aKeyMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exp()Returns the value of theexprecord component.final inthashCode()Returns a hash code value for this object.kid()Returns the value of thekidrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.use()Returns the value of theuserecord component.A copy withexpreplaced.A copy withkidreplaced.A copy withusereplaced.
-
Constructor Details
-
Method Details
-
withExp
A copy withexpreplaced.- Parameters:
exp- the expiry, or null- Returns:
- the new request
-
withKid
A copy withkidreplaced.- Parameters:
kid- the key identifier- Returns:
- the new request
-
withUse
A copy withusereplaced.- Parameters:
use-sigorenc, or null- Returns:
- the new request
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
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). -
exp
Returns the value of theexprecord component.- Returns:
- the value of the
exprecord component
-
kid
Returns the value of thekidrecord component.- Returns:
- the value of the
kidrecord component
-
use
Returns the value of theuserecord component.- Returns:
- the value of the
userecord component
-