Package com.mastfrog.acteur.auth
Class AuthenticateBasicActeur
java.lang.Object
com.mastfrog.acteurbase.AbstractActeur<Response,com.mastfrog.acteur.ResponseImpl,State>
com.mastfrog.acteur.Acteur
com.mastfrog.acteur.auth.AuthenticationActeur
com.mastfrog.acteur.auth.AuthenticateBasicActeur
Deprecated.
Do not use directly - bind AuthenticationActeur instead, so that
authentication strategies are pluggable
Basic authentication Acteur, with a few tricks:
- Will "tarpit" IP addresses which make repeated failed requests
- Will delay sending the response if more than a threshold number of bad attempts have already been made
- Author:
- Tim Boudreau
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.Decorator which can do things to the response on authentication succeess/failure, such as setting/clearing cookiesNested classes/interfaces inherited from class com.mastfrog.acteur.Acteur
Acteur.ConsumedLockedState, Acteur.ConsumedState, Acteur.Delegate, Acteur.RejectedState, Acteur.RespondWith -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.Fields inherited from class com.mastfrog.acteurbase.AbstractActeur
creationStackTrace -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeYourself(Map<String, Object> into) Deprecated.Provide a description used in help-page generation.Methods inherited from class com.mastfrog.acteur.Acteur
add, badRequest, badRequest, continueAfter, continueAfter, continueAfter, defer, deferThenRespond, deferThenRespond, dependencies, get, getContextContribution, getResponse, getState, next, noContent, notFound, notFound, ok, ok, reject, reply, reply, reply, response, setChunked, setMessage, setResponseBodyWriter, setResponseBodyWriter, setResponseCode, setResponseWriter, setResponseWriter, then, then, then, wrapMethods inherited from class com.mastfrog.acteurbase.AbstractActeur
setState
-
Field Details
-
SETTINGS_KEY_TARPIT_BAD_LOGIN_ATTEMPT_COUNT
Deprecated.- See Also:
-
SETTINGS_KEY_TARPIT_DELAY_RESPONSE_AFTER
Deprecated.- See Also:
-
SETTINGS_KEY_TARPIT_DELAY_SECONDS
Deprecated.- See Also:
-
DEFAULT_FAILED_LOGIN_ATTEMPT_LIMIT
public static final int DEFAULT_FAILED_LOGIN_ATTEMPT_LIMITDeprecated.- See Also:
-
DEFAULT_FAILED_LOGIN_ATTEMPT_DELAY_THRESHOLD
public static final int DEFAULT_FAILED_LOGIN_ATTEMPT_DELAY_THRESHOLDDeprecated.- See Also:
-
DEFAULT_FAILED_LOGIN_DELAY_SECONDS_MULTIPLIER
public static final int DEFAULT_FAILED_LOGIN_DELAY_SECONDS_MULTIPLIERDeprecated.- See Also:
-
-
Method Details
-
describeYourself
Deprecated.Description copied from class:ActeurProvide a description used in help-page generation. Acteurs which are instantiated declaratively need not override this, as information will be generated from the annotations on the acteur and any description provided- Overrides:
describeYourselfin classActeur- Parameters:
into- A map to put key/value pairs into
-