Record Class AcmeExternalAccountBindingProvider.Request

java.lang.Object
java.lang.Record
zeroecho.pki.server.spi.v2.AcmeExternalAccountBindingProvider.Request
Record Components:
directoryId - directory receiving the account request
authorityId - authority to which the account will be bound
profileId - requested issuance profile
accountKeyThumbprint - lowercase SHA-256 account-key commitment
nestedJws - bounded nested EAB JWS; defensively copied
now - authoritative verification time
Enclosing interface:
AcmeExternalAccountBindingProvider

public static record AcmeExternalAccountBindingProvider.Request(String directoryId, PkiId authorityId, String profileId, String accountKeyThumbprint, byte[] nestedJws, Instant now) extends Record
Exact bounded EAB verification request.
Since:
1.0
  • Constructor Details

    • Request

      public Request(String directoryId, PkiId authorityId, String profileId, String accountKeyThumbprint, byte[] nestedJws, Instant now)
      Defensively snapshots non-secret protocol material.
  • Method Details

    • nestedJws

      public byte[] nestedJws()
      Returns a defensive copy of the nested JWS.
      Returns:
      copied nested JWS bytes
    • toString

      public String toString()
      Returns a redacted diagnostic without account or JWS material.
      Specified by:
      toString in class Record
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • directoryId

      public String directoryId()
      Returns the value of the directoryId record component.
      Returns:
      the value of the directoryId record component
    • authorityId

      public PkiId authorityId()
      Returns the value of the authorityId record component.
      Returns:
      the value of the authorityId record component
    • profileId

      public String profileId()
      Returns the value of the profileId record component.
      Returns:
      the value of the profileId record component
    • accountKeyThumbprint

      public String accountKeyThumbprint()
      Returns the value of the accountKeyThumbprint record component.
      Returns:
      the value of the accountKeyThumbprint record component
    • now

      public Instant now()
      Returns the value of the now record component.
      Returns:
      the value of the now record component