Record Class AcmeJwsVerifier.Verified
java.lang.Object
java.lang.Record
zeroecho.pki.server.acme.AcmeJwsVerifier.Verified
- Record Components:
payload- verified endpoint payloadkeyThumbprint- authenticated signing-key thumbprintaccount- resolved account for KID modepublicKey- authenticated signing public key
- Enclosing class:
AcmeJwsVerifier
public static record AcmeJwsVerifier.Verified(byte[] payload, String keyThumbprint, Optional<AcmeJwsVerifier.AccountKey> account, PublicKey publicKey)
extends Record
Verified JWS data safe to pass to one closed endpoint decoder.
-
Constructor Summary
ConstructorsConstructorDescriptionVerified(byte[] payload, String keyThumbprint, Optional<AcmeJwsVerifier.AccountKey> account, PublicKey publicKey) Defensively snapshots verified payload. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyThumbprintrecord component.byte[]payload()Returns the verified endpoint payload.Returns the value of thepublicKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Verified
public Verified(byte[] payload, String keyThumbprint, Optional<AcmeJwsVerifier.AccountKey> account, PublicKey publicKey) Defensively snapshots verified payload.
-
-
Method Details
-
payload
public byte[] payload()Returns the verified endpoint payload.- Returns:
- defensive copy of payload bytes
-
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). -
keyThumbprint
Returns the value of thekeyThumbprintrecord component.- Returns:
- the value of the
keyThumbprintrecord component
-
account
-
publicKey
-