Package org.pac4j.core.http.callback
Class NoParameterCallbackUrlResolver
java.lang.Object
org.pac4j.core.http.callback.NoParameterCallbackUrlResolver
- All Implemented Interfaces:
CallbackUrlResolver
No name is added to the callback URL to be able to distinguish the client, so it doesn't match.
- Since:
- 3.0.0
- Author:
- Jerome Leleu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(UrlResolver urlResolver, String url, String clientName, WebContext context) Compute a callback URL from the provided URL resolver, URL, client name and web context.boolean
matches
(String clientName, WebContext context) Whether the current context matches the client name.
-
Constructor Details
-
NoParameterCallbackUrlResolver
public NoParameterCallbackUrlResolver()
-
-
Method Details
-
compute
Description copied from interface:CallbackUrlResolver
Compute a callback URL from the provided URL resolver, URL, client name and web context.- Specified by:
compute
in interfaceCallbackUrlResolver
- Parameters:
urlResolver
- the provided URL resolverurl
- the URLclientName
- the client namecontext
- the web context- Returns:
- the computed URL
-
matches
Description copied from interface:CallbackUrlResolver
Whether the current context matches the client name.- Specified by:
matches
in interfaceCallbackUrlResolver
- Parameters:
clientName
- the client namecontext
- the web context- Returns:
- whether the current context matches the client name
-