|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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(java.lang.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 java.lang.String |
encodeBasicAuthorizationCredentials(java.lang.String username,
java.lang.String password)
Reverses the operation of decodeBasicAuthorizationCredentials. |
static Authenticator |
getAuthenticator(javax.servlet.ServletContext servletContext)
|
static boolean |
isBasicAuthorizationHeader(java.lang.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(java.lang.String header)
public static SecurityUtils.UserPassCredentials decodeBasicAuthorizationCredentials(java.lang.String basicAuthorizationHeader)
basicAuthorizationHeader - the header to decode.
public static java.lang.String encodeBasicAuthorizationCredentials(java.lang.String username,
java.lang.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 | |||||||||