public class SecurityUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityUtils.UserPassCredentials
User credentials including a username and a password.
|
| Constructor and Description |
|---|
SecurityUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SecurityUtils.UserPassCredentials |
decodeBasicAuthorizationCredentials(String basicAuthorizationHeader)
Extracts the username and password from the given header string (including the 'Basic ' prefix).
|
static void |
disableSeraphFiltering(javax.servlet.ServletRequest request)
Disables seraph filtering
|
static String |
encodeBasicAuthorizationCredentials(String username,
String password)
Reverses the operation of decodeBasicAuthorizationCredentials.
|
static Authenticator |
getAuthenticator(javax.servlet.ServletContext servletContext) |
static boolean |
isBasicAuthorizationHeader(String header) |
static boolean |
isSeraphFilteringDisabled(javax.servlet.ServletRequest request)
Checks if Seraph filtering is disabled
|
public static Authenticator getAuthenticator(javax.servlet.ServletContext servletContext)
public static boolean isBasicAuthorizationHeader(String header)
public static SecurityUtils.UserPassCredentials decodeBasicAuthorizationCredentials(String basicAuthorizationHeader)
basicAuthorizationHeader - the header to decode.public static String encodeBasicAuthorizationCredentials(String username, String password)
username - the username to encode.password - the password to encode.public static void disableSeraphFiltering(javax.servlet.ServletRequest request)
request - public static boolean isSeraphFilteringDisabled(javax.servlet.ServletRequest request)
request - Copyright © 2018 Atlassian. All rights reserved.