Package csw.config.api
Interface TokenFactory
-
public interface TokenFactoryConfigServicedeals with some admin functionality. In order to perform those, one need to implement this interface.Refer
CliTokenFactoryclass fromcsw-config-cliproject which implements this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetToken()This token is used by anConfigServiceto access an admin API.
-
-
-
Method Detail
-
getToken
java.lang.String getToken()
This token is used by anConfigServiceto 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-aasproject 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
-
-