@Deprecated public class ClientVerifier extends SecretVerifier
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID
Constructor and Description |
---|
ClientVerifier(Context context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAcceptBodyMethod()
Deprecated.
Indicates if the verifier can find credentials in the Web Form entity of the request in case the request has no
challengeResponse (cf
Request.getChallengeResponse() ). |
void |
setAcceptBodyMethod(boolean acceptBodyMethod)
Deprecated.
Indicates whether the verifier can find credentials in the Web Form entity of the request in case the request has
no challengeResponse (cf
Request.getChallengeResponse() ). |
int |
verify(Request request,
Response response)
Deprecated.
In case the credentials are invalid, the response is completed with a representation generated by using
OAuthServerResource.responseErrorRepresentation(OAuthException) . |
int |
verify(java.lang.String identifier,
char[] secret)
Deprecated.
|
compare, createUser, getIdentifier, getSecret
public ClientVerifier(Context context)
public boolean isAcceptBodyMethod()
Request.getChallengeResponse()
). If so, it looks for the
OAuthResourceDefs.CLIENT_ID
and OAuthResourceDefs.CLIENT_SECRET
parameters.public void setAcceptBodyMethod(boolean acceptBodyMethod)
Request.getChallengeResponse()
). If so, it looks for the
OAuthResourceDefs.CLIENT_ID
and OAuthResourceDefs.CLIENT_SECRET
parameters.acceptBodyMethod
- True to looks for credentials inside the request's Web Form, false otherwise.public int verify(Request request, Response response)
OAuthServerResource.responseErrorRepresentation(OAuthException)
.verify
in interface Verifier
verify
in class SecretVerifier
public int verify(java.lang.String identifier, char[] secret)
verify
in class SecretVerifier
Copyright © 2005-2024 Restlet.