Class BasicAuth
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BasicAuth.Builder,BasicAuth>
Configuration for HTTP Basic Authentication using credentials stored in Amazon Web Services Secrets Manager. The
secret must contain a JSON object with username and password string fields. Username allows
alphanumeric characters and @._+=- symbols (pattern: ^[a-zA-Z0-9@._+=\-]+$). Password
allows alphanumeric characters and @._+=-!#$%&* symbols (pattern:
^[a-zA-Z0-9@._+=\-!#$%&*]+$). Both fields have a maximum length of 256 characters.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicAuth.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret containing proxy credentials.static Class<? extends BasicAuth.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
secretArn
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret containing proxy credentials. The secret must be a JSON object with
usernameandpasswordstring fields that meet validation requirements. The caller must havesecretsmanager:GetSecretValuepermission for this ARN. Example secret format:{"username": "proxy_user", "password": "secure_password"}- Returns:
- The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret containing proxy
credentials. The secret must be a JSON object with
usernameandpasswordstring fields that meet validation requirements. The caller must havesecretsmanager:GetSecretValuepermission for this ARN. Example secret format:{"username": "proxy_user", "password": "secure_password"}
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<BasicAuth.Builder,BasicAuth>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-