public final class UserPassSecurityContext extends java.lang.Object implements ExecutionContext.SecurityContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PASSWORD_KEY |
static java.lang.String |
USER_KEY |
AUTHENTICATION_DATA_ID, AUTHENTICATION_SCHEME_ID
Constructor and Description |
---|
UserPassSecurityContext(java.lang.String user,
char[] password) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties() |
static UserPassSecurityContext |
getInstance(ExecutionContext.SecurityContext context)
Creates a
UserPassSecurityContext from the given
ExecutionContext.SecurityContext if possible. |
char[] |
getPassword() |
java.lang.Object |
getProperty(java.lang.String key) |
java.lang.String |
getUser() |
public static final java.lang.String USER_KEY
public static final java.lang.String PASSWORD_KEY
public UserPassSecurityContext(java.lang.String user, char[] password)
user
- cannot be null.password
- cannot be null.public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface ExecutionContext.SecurityContext
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties
in interface ExecutionContext.SecurityContext
Map
representing all the
propertiespublic java.lang.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
.