public final class TestAuthenticator extends Object implements IAuthenticator
| Modifier and Type | Class and Description |
|---|---|
static class |
TestAuthenticator.Binder
HK2 Binder for our injector context.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
REMOTE_ID
Unique foreign ID string for the debug user.
|
| Constructor and Description |
|---|
TestAuthenticator(org.hibernate.Session session)
Create a new dev authenticator.
|
| Modifier and Type | Method and Description |
|---|---|
UserIdentity |
authenticate(Authenticator authenticator,
javax.ws.rs.core.MultivaluedMap<String,String> parameters,
URI callback)
Resolve and/or create a user identity, given an intermediate state and
request parameters.
|
javax.ws.rs.core.Response |
delegate(Authenticator configuration,
URI callback)
Execute an authentication process for a specific request.
|
void |
validate(Authenticator authenticator)
Validate the test authenticator.
|
public static final String REMOTE_ID
@Inject public TestAuthenticator(org.hibernate.Session session)
session - Injected hibernate session.public javax.ws.rs.core.Response delegate(Authenticator configuration, URI callback)
delegate in interface IAuthenticatorconfiguration - The authenticator configuration.callback - The redirect, on this server, where the response
should go.public UserIdentity authenticate(Authenticator authenticator, javax.ws.rs.core.MultivaluedMap<String,String> parameters, URI callback)
authenticate in interface IAuthenticatorauthenticator - The authenticator configuration.parameters - Parameters for the authenticator, retrieved from
an appropriate source.callback - The redirect that was provided to the original
authorize call.public void validate(Authenticator authenticator) throws KangarooException
validate in interface IAuthenticatorauthenticator - The authenticator configuration.KangarooException - Thrown if the "invalid" property is sent.Copyright © 2018 krotscheck.net. All rights reserved.