public enum Security extends Enum<Security>
| Modifier and Type | Class and Description |
|---|---|
static class |
Security.Mapping |
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkAuthorization(Request request)
Check the request authorization.
|
Security.Mapping |
getSecurityMapping(String uri)
Get a security mapping from provided uri.
|
void |
register(Security.Mapping securityMapping)
Register a security mapping.
|
void |
unregister(Security.Mapping mapping) |
void |
unregister(String uri)
Unregister a uri.
|
static Security |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Security[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Security INSTANCE
public static Security[] values()
for (Security c : Security.values()) System.out.println(c);
public static Security valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean checkAuthorization(Request request)
request - the requestpublic Security.Mapping getSecurityMapping(String uri)
uri - the uripublic final void register(Security.Mapping securityMapping)
securityMapping - the security mappingpublic void unregister(Security.Mapping mapping)
public void unregister(String uri)
uri - the uriCopyright © 2016–2017 RestNEXT. All rights reserved.