com.mohiva.play.silhouette.api.services
Creates a new authenticator for the specified login info.
Creates a new authenticator for the specified login info.
The login info for which the authenticator should be created.
The request header.
An authenticator.
Manipulates the response and removes authenticator specific artifacts before sending it to the client.
Manipulates the response and removes authenticator specific artifacts before sending it to the client.
The authenticator instance.
The result to manipulate.
The request header.
The manipulated result.
Embeds authenticator specific artifacts into the request.
Embeds authenticator specific artifacts into the request.
This method can be used to embed an authenticator in a existing request. This can be useful in Play filters. So before executing a SecuredAction we can embed the authenticator in the request to lead the action to believe that the request is a new request which contains a valid authenticator.
If an existing authenticator exists, then it will be overridden.
The authenticator value to embed.
The request header.
The manipulated request header.
Embeds authenticator specific artifacts into the response.
Embeds authenticator specific artifacts into the response.
The authenticator value to embed.
The result to manipulate.
The request header.
The manipulated result.
The execution context to handle the asynchronous operations.
The execution context to handle the asynchronous operations.
Initializes an authenticator and instead of embedding into the the request or result, it returns the serialized value.
Initializes an authenticator and instead of embedding into the the request or result, it returns the serialized value.
The authenticator instance.
The request header.
The serialized authenticator value.
Renews the expiration of an authenticator.
Renews the expiration of an authenticator.
Based on the implementation, the renew method should revoke the given authenticator first, before creating a new one. If the authenticator was updated, then the updated artifacts should be embedded into the response.
The authenticator to renew.
The result to manipulate.
The request header.
The original or a manipulated result.
Renews the expiration of an authenticator without embedding it into the result.
Renews the expiration of an authenticator without embedding it into the result.
Based on the implementation, the renew method should revoke the given authenticator first, before creating a new one. If the authenticator was updated, then the updated artifacts should be returned.
The authenticator to renew.
The request header.
The serialized expression of the authenticator.
Retrieves the authenticator from request.
Retrieves the authenticator from request.
The request header.
Some authenticator or None if no authenticator could be found in request.
Touches an authenticator.
Touches an authenticator.
An authenticator can use sliding window expiration. This means that the authenticator times out after a certain time if it wasn't used. So to mark an authenticator as used it will be touched on every request to a Silhouette action. If an authenticator should not be touched because of the fact that sliding window expiration is disabled, then it should be returned on the right, otherwise it should be returned on the left. An untouched authenticator needn't be updated later by the update method.
The authenticator to touch.
The touched authenticator on the left or the untouched authenticator on the right.
Updates a touched authenticator.
Updates a touched authenticator.
If the authenticator was updated, then the updated artifacts should be embedded into the response. This method gets called on every subsequent request if an identity accesses a Silhouette action, expect the authenticator was not touched.
The authenticator to update.
The result to manipulate.
The request header.
The original or a manipulated result.
Handles authenticators for the Silhouette module.
The type of the authenticator this service is responsible for.