public final class UserPassSecurityContext extends Object implements ExecutionContext.SecurityContext
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_KEY |
static String |
USER_KEY |
AUTHENTICATION_DATA_ID, AUTHENTICATION_SCHEME_ID
Constructor and Description |
---|
UserPassSecurityContext(String user,
char[] password) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAllProperties() |
static UserPassSecurityContext |
getInstance(ExecutionContext.SecurityContext context)
Creates a
UserPassSecurityContext from the given
ExecutionContext.SecurityContext if possible. |
char[] |
getPassword() |
Object |
getProperty(String key) |
String |
getUser() |
public static final String USER_KEY
public static final String PASSWORD_KEY
public UserPassSecurityContext(String user, char[] password)
user
- cannot be null.password
- cannot be null.public Object getProperty(String key)
getProperty
in interface ExecutionContext.SecurityContext
public Map<String,Object> getAllProperties()
getAllProperties
in interface ExecutionContext.SecurityContext
Map
representing all the propertiespublic String getUser()
public char[] getPassword()
public static UserPassSecurityContext getInstance(ExecutionContext.SecurityContext context)
UserPassSecurityContext
from the given
ExecutionContext.SecurityContext
if possible. Otherwise null
will be returned.context
- cannot be null.UserPassSecurityContext
.Copyright © 2015. All Rights Reserved.