public interface AccessTokenRetriever extends Initable, Closeable
AccessTokenRetriever is the internal API by which the login module will
retrieve an access token for use in authorization by the broker. The implementation may
involve authentication to a remote system, or it can be as simple as loading the contents
of a file or configuration setting.
Retrieval is a separate concern from validation, so it isn't necessary for
the AccessTokenRetriever implementation to validate the integrity of the JWT
access token.HttpAccessTokenRetriever,
FileTokenRetriever| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Lifecycle method to perform a clean shutdown of the retriever.
|
String |
retrieve()
Retrieves a JWT access token in its serialized three-part form.
|
String retrieve() throws IOException
LoginModule from
which this is ultimately called does not provide an asynchronous approach.null JWT access token stringIOException - Thrown on errors related to IO during retrievaldefault void close()
throws IOException
Initable.init().close in interface AutoCloseableclose in interface CloseableIOException - Thrown on errors related to IO during closure