public static enum HandleMissingAuthentication.Option extends java.lang.Enum<HandleMissingAuthentication.Option>
Enum Constant and Description |
---|
CUSTOM
Customized solution
|
REDIRECT
redirect to login URL
|
REJECT
send 401 response
|
Modifier and Type | Method and Description |
---|---|
protected abstract MissingAuthenticationHandler |
createHandler(java.lang.String custom) |
MissingAuthenticationHandler |
handler(java.lang.String custom) |
static HandleMissingAuthentication.Option |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HandleMissingAuthentication.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandleMissingAuthentication.Option REDIRECT
public static final HandleMissingAuthentication.Option REJECT
public static final HandleMissingAuthentication.Option CUSTOM
public static HandleMissingAuthentication.Option[] values()
for (HandleMissingAuthentication.Option c : HandleMissingAuthentication.Option.values()) System.out.println(c);
public static HandleMissingAuthentication.Option valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic MissingAuthenticationHandler handler(java.lang.String custom)
protected abstract MissingAuthenticationHandler createHandler(java.lang.String custom)
Copyright © 2014–2017 ActFramework. All rights reserved.