Interface TokenPayload

All Known Implementing Classes:
TokenPayload.Retry, TokenPayload.Validation

public sealed interface TokenPayload permits TokenPayload.Retry, TokenPayload.Validation
What an address validation token says, encrypted so that only the server can read it.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    A token sent in a Retry packet (RFC 9000 section 8.1.2), bound to the client's address and port, and short-lived since the client returns it at once.
    static final record 
    A token sent in a NEW_TOKEN frame (RFC 9000 section 8.1.3), for a later connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    When the token was issued, to whole seconds.
  • Method Details

    • issued

      Instant issued()
      When the token was issued, to whole seconds.
      Returns:
      the time