Class CredentialsFactory


  • public abstract class CredentialsFactory
    extends Object
    • Method Detail

      • create

        public static Optional<com.cloudbees.plugins.credentials.common.StandardCredentials> create​(String arn,
                                                                                                    String name,
                                                                                                    String description,
                                                                                                    Map<String,​String> tags,
                                                                                                    com.amazonaws.services.secretsmanager.AWSSecretsManager client)
        Construct a Jenkins credential from a Secrets Manager secret.
        Parameters:
        name - the secret's name (must be unique within the AWS account)
        description - the secret's description
        tags - the secret's AWS tags
        client - the Secrets Manager client that will retrieve the secret's value on demand
        Returns:
        a credential (if one could be constructed from the secret's properties)