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) |
Security.Mapping |
getSecurityMapping(String uri) |
void |
register(Security.Mapping securityMapping) |
void |
unregister(String 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 final void register(Security.Mapping securityMapping)
public void unregister(String uri)
public Security.Mapping getSecurityMapping(String uri)
public static boolean checkAuthorization(Request request)
Copyright © 2016 RestNEXT. All rights reserved.