public class SecurityRoute extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SecurityRoute(String path,
String authorities,
io.netty.handler.codec.http.HttpMethod[] methods)
Constructs a new security route object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorities()
Get the authorities
|
io.netty.handler.codec.http.HttpMethod[] |
getMethods()
Get the HTTP methods to be secured.
|
String |
getPath()
Get the secured path.
|
boolean |
matchesPathAndMethod(String pathToMatch,
io.netty.handler.codec.http.HttpMethod method)
Check if the provided path and HTTP method match the secured path and
methods.
|
public String getPath()
public String getAuthorities()
public io.netty.handler.codec.http.HttpMethod[] getMethods()
public boolean matchesPathAndMethod(String pathToMatch, io.netty.handler.codec.http.HttpMethod method)
pathToMatch - the path of the current routemethod - the HTTP emthod of the current routetrue if the path and method matchedCopyright © 2014 Yourinspiration. All rights reserved.