public class BasicAuthUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_NAME |
static String |
ALGORITHM |
static com.fasterxml.jackson.core.type.TypeReference |
AUTHENTICATOR_USER_MAP_TYPE_REFERENCE |
static com.fasterxml.jackson.core.type.TypeReference |
AUTHORIZER_ROLE_MAP_TYPE_REFERENCE |
static com.fasterxml.jackson.core.type.TypeReference |
AUTHORIZER_USER_AND_ROLE_MAP_TYPE_REFERENCE |
static com.fasterxml.jackson.core.type.TypeReference |
AUTHORIZER_USER_MAP_TYPE_REFERENCE |
static int |
DEFAULT_KEY_ITERATIONS |
static String |
INTERNAL_USER_NAME |
static int |
KEY_LENGTH |
static int |
SALT_LENGTH |
Constructor and Description |
---|
BasicAuthUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,BasicAuthenticatorUser> |
deserializeAuthenticatorUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
byte[] userMapBytes) |
static Map<String,BasicAuthorizerRole> |
deserializeAuthorizerRoleMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
byte[] roleMapBytes) |
static Map<String,BasicAuthorizerUser> |
deserializeAuthorizerUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
byte[] userMapBytes) |
static byte[] |
generateSalt() |
static String |
getBasicUserSecretFromHttpReq(javax.servlet.http.HttpServletRequest httpReq) |
static String |
getEncodedCredentials(String unencodedCreds) |
static byte[] |
hashPassword(char[] password,
byte[] salt,
int iterations) |
static byte[] |
serializeAuthenticatorUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Map<String,BasicAuthenticatorUser> userMap) |
static byte[] |
serializeAuthorizerRoleMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Map<String,BasicAuthorizerRole> roleMap) |
static byte[] |
serializeAuthorizerUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Map<String,BasicAuthorizerUser> userMap) |
public static final String ADMIN_NAME
public static final String INTERNAL_USER_NAME
public static final int SALT_LENGTH
public static final int DEFAULT_KEY_ITERATIONS
public static final int KEY_LENGTH
public static final String ALGORITHM
public static final com.fasterxml.jackson.core.type.TypeReference AUTHENTICATOR_USER_MAP_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference AUTHORIZER_USER_MAP_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference AUTHORIZER_ROLE_MAP_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference AUTHORIZER_USER_AND_ROLE_MAP_TYPE_REFERENCE
public static byte[] hashPassword(char[] password, byte[] salt, int iterations)
public static byte[] generateSalt()
@Nullable public static String getBasicUserSecretFromHttpReq(javax.servlet.http.HttpServletRequest httpReq)
public static Map<String,BasicAuthenticatorUser> deserializeAuthenticatorUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, byte[] userMapBytes)
public static byte[] serializeAuthenticatorUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<String,BasicAuthenticatorUser> userMap)
public static Map<String,BasicAuthorizerUser> deserializeAuthorizerUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, byte[] userMapBytes)
public static byte[] serializeAuthorizerUserMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<String,BasicAuthorizerUser> userMap)
public static Map<String,BasicAuthorizerRole> deserializeAuthorizerRoleMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, byte[] roleMapBytes)
public static byte[] serializeAuthorizerRoleMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<String,BasicAuthorizerRole> roleMap)
Copyright © 2011–2018. All rights reserved.