Package org.opendaylight.aaa.web
Interface WebContextSecurer
public interface WebContextSecurer
Secures a
WebContext.Builder.- Author:
- Michael Vorburger.ch
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidrequireAuthentication(WebContext.Builder webContextBuilder) Configure the WebContext to require auth all URLs.voidrequireAuthentication(WebContext.Builder webContextBuilder, boolean asyncSupported, String... urlPatterns) Configure the WebContext to require auth for specified URLs.default voidrequireAuthentication(WebContext.Builder webContextBuilder, String... urlPatterns) Configure the WebContext to require auth for specified URLs.
-
Method Details
-
requireAuthentication
void requireAuthentication(WebContext.Builder webContextBuilder, boolean asyncSupported, String... urlPatterns) Configure the WebContext to require auth for specified URLs.Configure the WebContext so that it requires authentication to access the given URL Patterns. Typically, this will be done by adding a
javax.servlet.Filter(or several, and whatever else they need).- Parameters:
webContextBuilder- builder to secureasyncSupported- true if asynchronous communication should also be supportedurlPatterns- URL patterns that require authentication
-
requireAuthentication
Configure the WebContext to require auth for specified URLs.Configures the WebContext so that it requires authentication to access the given URL Patterns. Typically, this will be done by adding a
javax.servlet.Filter(or several, and whatever else they need).This method is equivalent to
requireAuthentication(webContextBuilder, false, urlPatterns.- Parameters:
webContextBuilder- builder to secureurlPatterns- URL patterns that require authentication
-
requireAuthentication
Configure the WebContext to require auth all URLs.Configures the WebContext so that all its URL patterns (
/**) require authentication.- Parameters:
webContextBuilder- builder to secure- See Also:
-