Interface Credentials


  • public interface Credentials
    Abstract representation of a Credentials object. All implementations of this interface will define the required types and parameters for the specific implementation.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Method Detail

      • checkValid

        <V> void checkValid​(V arg)
        Implementors should override this method to perform validation. An argument is allowed to allow custom validation, for example, when given a configuration property, a specific property may be allowed to be null.
        Parameters:
        arg - optional argument or null.
      • toJson

        JsonObject toJson()
        Simple interop to downcast back to JSON for backwards compatibility.
        Returns:
        JSON representation of this credential.
      • applyHttpChallenge

        Credentials applyHttpChallenge​(String challenge,
                                       HttpMethod method,
                                       String uri,
                                       Integer nc,
                                       String cnonce)
        Applies the HTTP Authorization challenge to this Credential instance. The internal state can change to reflect the extra properties the challenge conveys.

        See https://tools.ietf.org/html/rfc7235 for more information.

        Parameters:
        challenge - the challenge is the WWW-Authenticate header response from a 401 request. Null challenges are allowed, and in this case, no verification will be performed, however it is up to the implementation to permit this.
        method - The http method this response is responding.
        uri - The http uri this response is responding.
        nc - The client internal counter (optional).
        cnonce - The client internal nonce (optional).
        Returns:
        fluent self.
      • applyHttpChallenge

        Credentials applyHttpChallenge​(String challenge,
                                       HttpMethod method,
                                       String uri)
        Applies the HTTP Authorization challenge to this Credential instance. The internal state can change to reflect the extra properties the challenge conveys.

        See https://tools.ietf.org/html/rfc7235 for more information.

        Parameters:
        challenge - the challenge is the WWW-Authenticate header response from a 401 request. Null challenges are allowed, and in this case, no verification will be performed, however it is up to the implementation to permit this.
        method - The http method this response is responding.
        uri - The http uri this response is responding.
        Returns:
        fluent self.
      • applyHttpChallenge

        Credentials applyHttpChallenge​(String challenge)
        Applies the HTTP Authorization challenge to this Credential instance. The internal state can change to reflect the extra properties the challenge conveys.

        See https://tools.ietf.org/html/rfc7235 for more information.

        Parameters:
        challenge - the challenge is the WWW-Authenticate header response from a 401 request. Null challenges are allowed, and in this case, no verification will be performed, however it is up to the implementation to permit this.
        Returns:
        fluent self.