Interface ResponderId

All Known Implementing Classes:
ResponderId.ByKey, ResponderId.ByName

public sealed interface ResponderId permits ResponderId.ByName, ResponderId.ByKey
An OCSP ResponderID (RFC 6960): the responder identity, either by name or by key hash.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Responder identified by the SHA-1 hash of its public key.
    static final record 
    Responder identified by its distinguished name.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    byKey(byte[] keyHash)
    Creates a key-hash-based responder id.
    Creates a name-based responder id.
  • Method Details

    • byName

      static ResponderId byName(X500Principal name)
      Creates a name-based responder id.
      Parameters:
      name - the responder DN
      Returns:
      the responder id
    • byKey

      static ResponderId byKey(byte[] keyHash)
      Creates a key-hash-based responder id.
      Parameters:
      keyHash - the responder key hash
      Returns:
      the responder id