|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.util.SecurityUtils
public class SecurityUtils
Nested Class Summary | |
---|---|
static class |
SecurityUtils.UserPassCredentials
User credentials including a username and a password. |
Constructor Summary | |
---|---|
SecurityUtils()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityUtils()
Method Detail |
---|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |