Class CredentialValidatorRegistry
java.lang.Object
cloud.kitelang.cli.validation.CredentialValidatorRegistry
Registry of credential validators for different cloud providers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all registered provider types.static CredentialValidatorgetValidator(String providerType) Gets the validator for a provider type.static booleanhasValidator(String providerType) Checks if a validator exists for the given provider type.validate(cloud.kitelang.engine.kitefile.Dependencies.Credential credential) Validates a credential using the appropriate validator.
-
Constructor Details
-
CredentialValidatorRegistry
public CredentialValidatorRegistry()
-
-
Method Details
-
getValidator
Gets the validator for a provider type.- Parameters:
providerType- the provider type (aws, gcp, azure)- Returns:
- the validator, or null if not found
-
validate
public static CredentialValidator.ValidationResult validate(cloud.kitelang.engine.kitefile.Dependencies.Credential credential) Validates a credential using the appropriate validator.- Parameters:
credential- the credential to validate- Returns:
- validation result
-
hasValidator
Checks if a validator exists for the given provider type. -
getProviderTypes
-