public final class BasicAuthenticationHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BasicAuthenticationHelper.Credentials |
Modifier and Type | Method and Description |
---|---|
static BasicAuthenticationHelper.Credentials |
getBasicAuthCredentials(javax.servlet.http.HttpServletRequest request)
Returns the Basic Auth credentials.
|
static void |
respondWithChallenge(javax.servlet.http.HttpServletResponse response,
String message,
String basicAuthRealm)
Responds to request with a message and a Basic Authentication challenge.
|
public static BasicAuthenticationHelper.Credentials getBasicAuthCredentials(javax.servlet.http.HttpServletRequest request)
request
- the requestpublic static void respondWithChallenge(javax.servlet.http.HttpServletResponse response, String message, String basicAuthRealm) throws IOException
response
- the HTTP responsemessage
- plain text message to sendbasicAuthRealm
- used as the realm for the WWWW-Authenticate headerIOException
Copyright © 2021 Atlassian. All rights reserved.