public interface AuthenticationMechanismContext
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(Scope scope,
java.lang.String namespace,
java.lang.String name)
Get the value of context attribute with the specified scope, namespace,
and name.
|
Credential |
getCredential()
Get the user credential.
|
Request |
getRequest()
Get the request of the current user interaction.
|
Response |
getResponse()
Get the response of the current user interaction.
|
java.lang.Object |
remove(Scope scope,
java.lang.String namespace,
java.lang.String name)
Remove the value of context attribute with the specified scope,
namespace, and name.
|
void |
set(Scope scope,
java.lang.String namespace,
java.lang.String name,
java.lang.Object value)
Set the value of context attribute with the specified scope, namespace,
and name with the specified value.
|
void |
setCredential(Credential credential)
Set the user credential.
|
java.lang.Object get(Scope scope, java.lang.String namespace, java.lang.String name)
scope
- The scope.namespace
- The namespace.name
- The name.void set(Scope scope, java.lang.String namespace, java.lang.String name, java.lang.Object value)
Serializable
.scope
- The scope.namespace
- The namespace.name
- The name.value
- The value.java.lang.Object remove(Scope scope, java.lang.String namespace, java.lang.String name)
scope
- The scope.namespace
- The namespace.name
- The name.Request getRequest()
Response getResponse()
Credential getCredential()
setCredential(Credential)
to
persist the modifications.void setCredential(Credential credential)
credential
- The user credential.