public class FileTokenRetriever extends Object implements AccessTokenRetriever
FileTokenRetriever is an AccessTokenRetriever that will load the contents,
interpreting them as a JWT access key in the serialized form.AccessTokenRetriever| Constructor and Description |
|---|
FileTokenRetriever(Path accessTokenFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Lifecycle method to perform any one-time initialization of the retriever.
|
String |
retrieve()
Retrieves a JWT access token in its serialized three-part form.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic FileTokenRetriever(Path accessTokenFile)
public void init()
throws IOException
Initableinit in interface InitableIOException - Thrown on errors related to IO during initializationpublic String retrieve() throws IOException
AccessTokenRetrieverLoginModule from
which this is ultimately called does not provide an asynchronous approach.retrieve in interface AccessTokenRetrievernull JWT access token stringIOException - Thrown on errors related to IO during retrieval