Package org.pac4j.core.http.callback
Interface CallbackUrlResolver
-
- All Known Implementing Classes:
NoParameterCallbackUrlResolver
,PathParameterCallbackUrlResolver
,QueryParameterCallbackUrlResolver
public interface CallbackUrlResolver
How to compute a callback URL and match a client.- Since:
- 3.0.0
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
compute(UrlResolver urlResolver, java.lang.String url, java.lang.String clientName, WebContext context)
Compute a callback URL from the provided URL resolver, URL, client name and web context.boolean
matches(java.lang.String clientName, WebContext context)
Whether the current context matches the client name.
-
-
-
Method Detail
-
compute
java.lang.String compute(UrlResolver urlResolver, java.lang.String url, java.lang.String clientName, WebContext context)
Compute a callback URL from the provided URL resolver, URL, client name and web context.- Parameters:
urlResolver
- the provided URL resolverurl
- the URLclientName
- the client namecontext
- the web context- Returns:
- the computed URL
-
matches
boolean matches(java.lang.String clientName, WebContext context)
Whether the current context matches the client name.- Parameters:
clientName
- the client namecontext
- the web context- Returns:
- whether the current context matches the client name
-
-