Package io.jenkins.plugins.wiz
Class WizCliAuthenticator
java.lang.Object
io.jenkins.plugins.wiz.WizCliAuthenticator
Handles authentication with the Wiz API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidauthenticate(Launcher launcher, FilePath workspace, EnvVars env, String wizClientId, Secret wizSecretKey, TaskListener listener, WizCliSetup cliSetup) Authenticates with the Wiz API using provided credentials.static intlogout(Launcher launcher, FilePath workspace, EnvVars env, TaskListener listener, WizCliSetup cliSetup) Logs out from the Wiz CLI.
-
Constructor Details
-
WizCliAuthenticator
public WizCliAuthenticator()
-
-
Method Details
-
authenticate
public static void authenticate(Launcher launcher, FilePath workspace, EnvVars env, String wizClientId, Secret wizSecretKey, TaskListener listener, WizCliSetup cliSetup) throws IOException, InterruptedException Authenticates with the Wiz API using provided credentials.- Throws:
IOExceptionInterruptedException
-
logout
public static int logout(Launcher launcher, FilePath workspace, EnvVars env, TaskListener listener, WizCliSetup cliSetup) throws IOException, InterruptedException Logs out from the Wiz CLI.- Throws:
IOExceptionInterruptedException
-