@Requirement(reqId="DOI_AUTH_020", reqName="Authentification par token") public class TokenBasedVerifier extends Object implements org.restlet.security.Verifier
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
private AbstractTokenDBHelper |
tokenDB
Token DB.
|
Constructor and Description |
---|
TokenBasedVerifier(AbstractTokenDBHelper tokenDB)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
processAuthentication(org.restlet.Request request,
org.restlet.data.ChallengeResponse challResponse)
Process Authentication.
|
private int |
processToken(org.restlet.Request request,
String token)
Process token.
|
int |
verify(org.restlet.Request request,
org.restlet.Response response)
Verifies the token.
|
private static final org.apache.logging.log4j.Logger LOG
private final AbstractTokenDBHelper tokenDB
public TokenBasedVerifier(AbstractTokenDBHelper tokenDB)
tokenDB
- token DBpublic int verify(org.restlet.Request request, org.restlet.Response response)
verify
in interface org.restlet.security.Verifier
request
- requestresponse
- responseprivate int processAuthentication(org.restlet.Request request, org.restlet.data.ChallengeResponse challResponse)
request
- requestchallResponse
- authentication objectprivate int processToken(org.restlet.Request request, String token)
request
- requesttoken
- tokenVerifier
Copyright © 2017–2020 CNES. All rights reserved.