Class BasicAuthHeaderValue

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.843Z")
    @Stability(Stable)
    public class BasicAuthHeaderValue
    extends StringPrefix
    Matches the value part of a basic auth header with the supplied username and password - useful in conjunction with the StateVariable matcher.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object toJSON()
      For non-TypeScript implementations (see AnyMatcher.toJSON).
      • Methods inherited from class software.amazon.jsii.JsiiObject

        jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
      • Methods inherited from interface software.amazon.jsii.JsiiSerializable

        $jsii$toJson
    • Constructor Detail

      • BasicAuthHeaderValue

        protected BasicAuthHeaderValue​(software.amazon.jsii.JsiiObjectRef objRef)
      • BasicAuthHeaderValue

        protected BasicAuthHeaderValue​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • BasicAuthHeaderValue

        @Stability(Stable)
        public BasicAuthHeaderValue​(@NotNull
                                    Object username,
                                    @NotNull
                                    Object password)
        Parameters:
        username -
        • The username for this basic auth header.
        This parameter is required.
        password -
        • The password for this basic auth password.
        This parameter is required.
    • Method Detail

      • toJSON

        @Stability(Stable)
        @NotNull
        public Object toJSON()
        For non-TypeScript implementations (see AnyMatcher.toJSON).
        Overrides:
        toJSON in class StringPrefix
        Returns:
        An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}