Version

AuthInfo

The AuthInfo interface enables applications to manage authentication information for servlet-initiated requests that encounter challenges from a Proxy or User Agent Server (UAS). By using this interface, applications can programmatically supply the necessary authentication data, reducing the need for manual intervention when requests are challenged.

Method:

addAuthInfo

void addAuthInfo(int statusCode,
                 java.lang.String realm,
                 java.lang.String username,
                 java.lang.String password)

Adds authentication information to the AuthInfo object for handling a challenge response of a specific type (401 or 407) and realm. This method helps applications supply the credentials required to respond to authentication challenges from a Proxy or UAS.
Parameters:
statusCode: The status code of the challenge response (either 401 or 407).
realm: The realm specified in the challenge response.
username: The username to authenticate with.
password: The password associated with the username.

Start innovating with Mobius

What's next? Let's talk!

Mobius Software

As a company you'll get:

  • Get started quickly

  • Support any business model

  • Join millions of businesses

Questions? websupport@mobius.com