public class JaasVerifier extends java.lang.Object implements Verifier
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID
Constructor and Description |
---|
JaasVerifier(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected javax.security.auth.callback.CallbackHandler |
createCallbackHandler(Request request,
Response response)
Creates a callback handler for the given parameters.
|
javax.security.auth.login.Configuration |
getConfiguration()
Returns the optional JAAS login configuration.
|
java.lang.String |
getName()
Returns the JAAS login context name.
|
java.lang.String |
getUserPrincipalClassName()
Gets the user principal class name.
|
void |
setConfiguration(javax.security.auth.login.Configuration configuration)
Sets the optional JAAS login configuration.
|
void |
setName(java.lang.String contextName)
Sets the JAAS login context name.
|
void |
setUserPrincipalClassName(java.lang.String userPrincipalClassName)
Sets the user principal class name.
|
int |
verify(Request request,
Response response)
Verifies that the proposed secret is correct for the specified
identifier.
|
public JaasVerifier(java.lang.String name)
name
- The JAAS login context name.protected javax.security.auth.callback.CallbackHandler createCallbackHandler(Request request, Response response)
public javax.security.auth.login.Configuration getConfiguration()
public java.lang.String getName()
public java.lang.String getUserPrincipalClassName()
public void setConfiguration(javax.security.auth.login.Configuration configuration)
configuration
- The optional JAAS login configuration.public void setName(java.lang.String contextName)
contextName
- The JAAS login context name.public void setUserPrincipalClassName(java.lang.String userPrincipalClassName)
User
is not associated
with the Request
's ClientInfo
and if one of the
principals returned after the JAAS login is of this type, a new User
will be associated with the
ClientInfo
using its
name.userPrincipalClassName
- the user principal class name.public int verify(Request request, Response response)
createCallbackHandler(Request, Response)
and
calls the LoginContext.login()
method on it.Copyright © 2005-2020 Restlet.