@ShellComponent @ShellCommandGroup(value="Auth- and security-related Functions") public class Auth extends Object
| Constructor and Description |
|---|
Auth() |
| Modifier and Type | Method and Description |
|---|---|
void |
accessToken(String jwt) |
void |
authServer(String authServer) |
void |
clientId(String clientId) |
void |
disableMTLS() |
void |
enableMTLS() |
String |
getAccessToken() |
String |
getAuthServer() |
String |
getClientId() |
String |
getJwksPath() |
String |
getRefreshToken() |
void |
init() |
void |
jwksPath(String jwksPath) |
void |
refreshToken(String refreshToken) |
void |
setupMTLS(String rootCaPath,
String certFilePath,
String keyFilePath,
boolean mtlsEnabled) |
void |
unsetAccessToken() |
void |
unsetRefreshToken() |
void |
verifyingSsl(String verifyingSsl) |
@PostConstruct public void init()
@ShellMethod(value="Set verifyingSsl, e.g. true, false")
public void verifyingSsl(@ShellOption
String verifyingSsl)
@ShellMethod(value="Setup client certificate and CA to enable MTLS connection to the server")
public void setupMTLS(@ShellOption(value="root CA file path")
String rootCaPath,
@ShellOption(value="client cert file path")
String certFilePath,
@ShellOption(value="client key file path")
String keyFilePath,
@ShellOption(value="enable MTLS or not",defaultValue="true")
boolean mtlsEnabled)
@ShellMethod(value="Enable MTLS") public void enableMTLS()
@ShellMethod(value="Disable MTLS") public void disableMTLS()
@ShellMethod(value="Set access token to send as the Authorization: Bearer header (Property: access.token)")
public void accessToken(@ShellOption
String jwt)
@ShellMethod(value="Unset access token") public void unsetAccessToken()
@ShellMethod(value="Get currently set access token. The refresh token flow can update access token.") public String getAccessToken()
@ShellMethod(value="Set the base URL of the OIDC Server (Property: auth.server)")
public void authServer(@ShellOption
String authServer)
@ShellMethod(value="Get configured OIDC Server base URL") public String getAuthServer()
@ShellMethod(value="Set refresh token. The access token, if set and valid, takes precedence. (Property: refresh.token)")
public void refreshToken(@ShellOption
String refreshToken)
@ShellMethod(value="Unset refresh token") public void unsetRefreshToken()
@ShellMethod(value="Get refresh token") public String getRefreshToken()
@ShellMethod(value="Set client ID registered on the Auth Server (Property: client.id)")
public void clientId(@ShellOption
String clientId)
@ShellMethod(value="Get client ID") public String getClientId()
@ShellMethod(value="Set JWKS keystore file path (Property: jwks.path)")
public void jwksPath(@ShellOption
String jwksPath)
@ShellMethod(value="Get JWKS keystore file path") public String getJwksPath()
Copyright © 2023. All rights reserved.