Package com.inrupt.client.openid
Class OpenIdProvider
java.lang.Object
com.inrupt.client.openid.OpenIdProvider
A class for interacting with an OpenID Provider.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOpenIdProvider(URI issuer, DPoP dpop) Create an OpenID Provider client.OpenIdProvider(URI issuer, DPoP dpop, HttpService httpClient) Create an OpenID Provider client.OpenIdProvider(URI issuer, DPoP dpop, HttpService httpClient, ClientCache<URI, Metadata> metadataCache) Create an OpenID Provider client. -
Method Summary
Modifier and TypeMethodDescriptionauthorize(AuthorizationRequest request) Construct the OpenID authorization URI asynchronously.endSession(EndSessionRequest request) End the session asynchronously with the OpenID Provider.metadata()Fetch the OpenID metadata resource.token(TokenRequest request) Interact asynchronously with the OpenID Provider's token endpoint.
-
Constructor Details
-
OpenIdProvider
Create an OpenID Provider client.- Parameters:
issuer- the OpenID provider issuerdpop- the DPoP manager
-
OpenIdProvider
Create an OpenID Provider client.- Parameters:
issuer- the OpenID provider issuerdpop- the DPoP managerhttpClient- an HTTP client
-
OpenIdProvider
public OpenIdProvider(URI issuer, DPoP dpop, HttpService httpClient, ClientCache<URI, Metadata> metadataCache) Create an OpenID Provider client.- Parameters:
issuer- the OpenID provider issuerdpop- the DPoP managerhttpClient- an HTTP clientmetadataCache- an OpenID Metadata cache
-
-
Method Details
-
metadata
Fetch the OpenID metadata resource.- Returns:
- the next stage of completion, containing the OpenID Provider's metadata resource
-
authorize
Construct the OpenID authorization URI asynchronously.- Parameters:
request- the authorization request- Returns:
- the next stage of completion, containing URI for performing the authorization request
-
token
Interact asynchronously with the OpenID Provider's token endpoint.- Parameters:
request- the token request- Returns:
- the next stage of completion, containing the token response
-
endSession
End the session asynchronously with the OpenID Provider.- Parameters:
request- the end session request- Returns:
- a URI to which the app should be redirected, may be
nullif RP-initiated logout is not supported
-