Package io.fusionauth.oauth2
Class ServerMetaDataHelper
java.lang.Object
io.fusionauth.http.AbstractHttpHelper
io.fusionauth.oauth2.ServerMetaDataHelper
- Author:
- Daniel DeGroff
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationServerMetaDataretrieveFromIssuer(String issuer) Retrieve OAuth2 Authorization Server Metadata using the issuer as a starting point.static AuthorizationServerMetaDataretrieveFromWellKnownConfiguration(String endpoint) Retrieve OAuth2 Authorization Server Metadata.static AuthorizationServerMetaDataretrieveFromWellKnownConfiguration(HttpURLConnection httpURLConnection) Retrieve OAuth2 Authorization Server Metadata.Methods inherited from class io.fusionauth.http.AbstractHttpHelper
buildURLConnection, get
-
Constructor Details
-
ServerMetaDataHelper
public ServerMetaDataHelper()
-
-
Method Details
-
retrieveFromIssuer
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
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.
-