Class ServerMetaDataHelper

java.lang.Object
io.fusionauth.http.AbstractHttpHelper
io.fusionauth.oauth2.ServerMetaDataHelper

public class ServerMetaDataHelper extends AbstractHttpHelper
Author:
Daniel DeGroff
  • Constructor Details

    • ServerMetaDataHelper

      public ServerMetaDataHelper()
  • Method Details

    • retrieveFromIssuer

      public static AuthorizationServerMetaData retrieveFromIssuer(String issuer)
      Retrieve OAuth2 Authorization Server Metadata using the issuer as a starting point.
      Parameters:
      issuer - the issuer used to resolve the Authorization Server Metadata document.
      Returns:
      the authorization server meta data.
    • retrieveFromWellKnownConfiguration

      public static AuthorizationServerMetaData retrieveFromWellKnownConfiguration(HttpURLConnection httpURLConnection)
      Retrieve OAuth2 Authorization Server Metadata. Use this method if you know the well-known meta data URL and you want to build your own HTTP URL Connection.
      Parameters:
      httpURLConnection - the HTTP URL Connection that will be used to connect to the Authorization Server Metadata well known discovery endpoint.
      Returns:
      the authorization server metadata.
    • retrieveFromWellKnownConfiguration

      public static AuthorizationServerMetaData retrieveFromWellKnownConfiguration(String endpoint)
      Retrieve OAuth2 Authorization Server Metadata. Use this method if you know the well-known meta data URL.
      Parameters:
      endpoint - the Authorization Metadata well known discovery endpoint.
      Returns:
      the authorization server metadata.