Class HttpRequestUtils
- java.lang.Object
-
- com.cumulocity.microservice.security.filter.util.HttpRequestUtils
-
public class HttpRequestUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpRequestUtils.AuthorizationHeader
-
Field Summary
Fields Modifier and Type Field Description static String
AUTH_PREFIX
static String
AUTH_SEPARATOR
static String
LOGIN_SEPARATOR
static String
TFA_TOKEN_HEADER
static String
X_CUMULOCITY_APPLICATION_KEY
static String
XSRF_TOKEN_HEADER
-
Constructor Summary
Constructors Constructor Description HttpRequestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpRequestUtils.AuthorizationHeader
authorizationHeader(String authorization)
static String[]
decode(String authorization)
static boolean
hasAuthorizationHeader(Object credentialSource)
static String[]
splitUsername(String username)
-
-
-
Field Detail
-
X_CUMULOCITY_APPLICATION_KEY
public static final String X_CUMULOCITY_APPLICATION_KEY
- See Also:
- Constant Field Values
-
TFA_TOKEN_HEADER
public static final String TFA_TOKEN_HEADER
- See Also:
- Constant Field Values
-
LOGIN_SEPARATOR
public static final String LOGIN_SEPARATOR
- See Also:
- Constant Field Values
-
AUTH_PREFIX
public static final String AUTH_PREFIX
- See Also:
- Constant Field Values
-
AUTH_SEPARATOR
public static final String AUTH_SEPARATOR
- See Also:
- Constant Field Values
-
XSRF_TOKEN_HEADER
public static final String XSRF_TOKEN_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasAuthorizationHeader
public static boolean hasAuthorizationHeader(Object credentialSource)
-
authorizationHeader
public static HttpRequestUtils.AuthorizationHeader authorizationHeader(String authorization)
-
-