public class FileBasedTokenProvider extends java.lang.Object implements TokenProvider
token() method is called.| Constructor and Description |
|---|
FileBasedTokenProvider(java.lang.String tokenFilePath)
Create a new instance that refers to a specified file as a token source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
token()
Get a token
|
java.lang.String |
toString() |
public FileBasedTokenProvider(java.lang.String tokenFilePath)
tokenFilePath - A path to a file containing a tokenjava.lang.IllegalArgumentException - if the specified tokenFilePath does not exist or is not a regular filepublic java.lang.String token()
TokenProvidertoken in interface TokenProviderpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2024. All rights reserved.