java.lang.Object
com.irurueta.authserver.authorization.api.web.clientauth.MtlsEndpointAliases

public class MtlsEndpointAliases extends Object
Builds the mtls_endpoint_aliases metadata claim of RFC 8705 (section 5): the addresses of the endpoints that authenticate clients on the dedicated TLS port, the issuer's host with authserver.x509.port. Nothing is added while that port is not configured.
  • Field Details

    • CLAIM

      public static final String CLAIM
      Name of the metadata claim.
      See Also:
    • HTTPS

      private static final String HTTPS
      Scheme of the TLS port.
      See Also:
    • x509Properties

      private final X509Properties x509Properties
      Settings of the X.509 sign-in and its dedicated port.
    • settings

      private final org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings settings
      Paths of the protocol endpoints and the configured issuer.
  • Constructor Details

    • MtlsEndpointAliases

      public MtlsEndpointAliases()
  • Method Details

    • contribute

      public void contribute(BiConsumer<String,Object> claims)
      Adds the claim to a metadata document, when the TLS port is configured.
      Parameters:
      claims - receives the claim name and value.
    • put

      private void put(Map<String,Object> aliases, String name, String issuer, String endpoint)
      Adds the alias of an endpoint.
      Parameters:
      aliases - receives the alias.
      name - metadata name of the endpoint.
      issuer - the issuer, whose host and path prefix the alias keeps.
      endpoint - path of the endpoint.