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, wait
close
public FileTokenRetriever(Path accessTokenFile)
public void init() throws IOException
Initable
init
in interface Initable
IOException
- Thrown on errors related to IO during initializationpublic String retrieve() throws IOException
AccessTokenRetriever
LoginModule
from
which this is ultimately called does not provide an asynchronous approach.retrieve
in interface AccessTokenRetriever
null
JWT access token stringIOException
- Thrown on errors related to IO during retrieval