Package org.restlet.security
Interface Verifier
- All Known Implementing Classes:
LocalVerifier,MapVerifier,SecretVerifier
public interface Verifier
Verifies the credentials provided by a client user sending a request.
- Author:
- Jerome Louvel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInvalid credentials provided.static final intNo credentials provided.static final intStale credentials provided.static final intUnknown user.static final intUnsupported credentials.static final intValid credentials provided. -
Method Summary
-
Field Details
-
RESULT_INVALID
static final int RESULT_INVALIDInvalid credentials provided.- See Also:
-
RESULT_MISSING
static final int RESULT_MISSINGNo credentials provided.- See Also:
-
RESULT_STALE
static final int RESULT_STALEStale credentials provided.- See Also:
-
RESULT_UNSUPPORTED
static final int RESULT_UNSUPPORTEDUnsupported credentials.- See Also:
-
RESULT_UNKNOWN
static final int RESULT_UNKNOWNUnknown user.- See Also:
-
RESULT_VALID
static final int RESULT_VALIDValid credentials provided.- See Also:
-
-
Method Details
-
verify
Attempts to verify the credentials provided by the client user sending the request.- Parameters:
request- The request sent.response- The response to update.- Returns:
- Result of the verification based on the RESULT_* constants.
-