Package io.jenkins.plugins.wiz
Class WizInputValidator
java.lang.Object
io.jenkins.plugins.wiz.WizInputValidator
Validator for Wiz CLI inputs and commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateCommand(String userInput) Validates the command structure and arguments.static voidvalidateConfiguration(String wizClientId, Secret wizSecretKey, String wizCliURL) Validates the global configuration parametersstatic voidvalidateScanAction(Run<?, ?> build, FilePath workspace, String artifactName) Validates scan action parametersstatic voidvalidateWizCliUrl(String url) Validates the Wiz CLI download URL format.
-
Constructor Details
-
WizInputValidator
public WizInputValidator()
-
-
Method Details
-
validateConfiguration
public static void validateConfiguration(String wizClientId, Secret wizSecretKey, String wizCliURL) throws AbortException Validates the global configuration parameters- Throws:
AbortException
-
validateScanAction
public static void validateScanAction(Run<?, ?> build, FilePath workspace, String artifactName) throws IllegalArgumentExceptionValidates scan action parameters- Throws:
IllegalArgumentException
-
validateWizCliUrl
Validates the Wiz CLI download URL format.- Throws:
AbortException
-
validateCommand
Validates the command structure and arguments.- Throws:
IllegalArgumentException
-