Package com.ocient.auth
Class OpenIDAuthenticators
java.lang.Object
com.ocient.auth.OpenIDAuthenticators
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classThe PKCE-enhanced Authorization Code Flow introduces a secret created by the calling application that can be verified by the authorization server; this secret is called the Code Verifier.static classThe Device Authorization Grant is an extension that enables devices with no browser or limited input capability to use OAuth.static classFrom https://datatracker.ietf.org/doc/html/rfc8628static enumstatic classToken(s) received from an OAuth 2.0 Token Endpointstatic interfaceOpenIDAuthenticators.TokenPoller<T extends Token> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.apache.http.impl.client.CloseableHttpClientcreateHTTPClient(String url) static com.google.gson.JsonObjectgetDiscoveryDocument(String issuer) Returns the issuer's discovery document
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON -
DISCOVERY_DOCUMENT_PATH
- See Also:
-
DEFAULT_CODE_CALLBACK_PORT
public static final int DEFAULT_CODE_CALLBACK_PORT- See Also:
-
OAUTH_DEVICE_GRANT
- See Also:
-
OAUTH_PKCE
- See Also:
-
-
Constructor Details
-
OpenIDAuthenticators
public OpenIDAuthenticators()
-
-
Method Details
-
getDiscoveryDocument
public static com.google.gson.JsonObject getDiscoveryDocument(String issuer) throws IOException, KeyManagementException, NoSuchAlgorithmException, KeyStoreException Returns the issuer's discovery document- Parameters:
issuer- the Authorization Server- Returns:
- the issuer's discovery document
- Throws:
IOExceptionKeyStoreExceptionNoSuchAlgorithmExceptionKeyManagementException
-
createHTTPClient
protected static org.apache.http.impl.client.CloseableHttpClient createHTTPClient(String url) throws MalformedURLException, KeyManagementException, NoSuchAlgorithmException, KeyStoreException
-