Package csw.config.api
Interface TokenFactory
public interface TokenFactory
ConfigService
deals with some admin functionality.
In order to perform those, one need to implement this interface.
Refer CliTokenFactory
class from csw-config-cli
project which implements this interface.
-
Method Summary
-
Method Details
-
getToken
String getToken()This token is used by anConfigService
to access an admin API. This inform the API that the bearer of the token has been authorized to access the API and perform specific actions specified by the scope that has been granted.Refer
csw-aas
project and their corresponding documentation to know more about how one can authenticate and authorize with auth server and get this token.- Returns:
- raw token string which can then be used to access admin api
-