public class AuthKeyAuthentication extends java.lang.Object implements Authentication
Constructor and Description |
---|
AuthKeyAuthentication(org.restlet.data.Reference ref)
OpenAPI Authentication based on authentication key for a single url.
|
AuthKeyAuthentication(java.lang.String url)
OpenAPI Authentication based on authentication key for a single url.
|
AuthKeyAuthentication(java.lang.String url,
java.lang.String authKey)
OpenAPI Authentication based on authentication key for a single url.
|
AuthKeyAuthentication(java.lang.String url,
java.lang.String authKey,
boolean prefix)
OpenAPI Authentication based on authentication key for a single url.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthentication(org.restlet.data.Request request) |
static org.restlet.data.Reference |
getReferenceUriWithAuthKey(java.lang.String url,
java.lang.String authKey) |
static org.restlet.data.Reference |
getReferenceWithAuthKey(org.restlet.data.Reference reference,
java.lang.String authKey) |
boolean |
isDeprecated()
A authentication may be available for a few time.
|
static boolean |
removeAuthKey(org.restlet.data.Reference reference) |
org.restlet.data.Response |
updateAuthenticationResult(ClientSession session,
org.restlet.data.Request request,
org.restlet.data.Response response) |
public AuthKeyAuthentication(java.lang.String url, java.lang.String authKey)
url
- authKey
- public AuthKeyAuthentication(java.lang.String url, java.lang.String authKey, boolean prefix)
url
- authKey
- prefix
- if true, the url is considered as a prefix of url for wich the authKey is supposed to be good.public AuthKeyAuthentication(java.lang.String url)
url
- it included the authKey parameterpublic AuthKeyAuthentication(org.restlet.data.Reference ref)
ref
- it included the authKey parameterpublic void addAuthentication(org.restlet.data.Request request)
addAuthentication
in interface Authentication
public org.restlet.data.Response updateAuthenticationResult(ClientSession session, org.restlet.data.Request request, org.restlet.data.Response response)
updateAuthenticationResult
in interface Authentication
public static org.restlet.data.Reference getReferenceUriWithAuthKey(java.lang.String url, java.lang.String authKey)
public static org.restlet.data.Reference getReferenceWithAuthKey(org.restlet.data.Reference reference, java.lang.String authKey)
public static boolean removeAuthKey(org.restlet.data.Reference reference)
public boolean isDeprecated()
Authentication
isDeprecated
in interface Authentication
Copyright © 2001-2021 Jalios SA. All Rights Reserved.