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 fromcsw-config-cli
project which implements this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getToken()
This token is used by anConfigService
to access an admin API.
-
-
-
Method Detail
-
getToken
java.lang.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
-
-