|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OnNoTokenPolicy>
org.mule.security.oauth.OnNoTokenPolicy
public enum OnNoTokenPolicy
This enum specifies the behavior to take when an OAuth protected operation is executed before the authorization is performed
| Enum Constant Summary | |
|---|---|
EXCEPTION
This policy throws a NotAuthorizedException |
|
STOP_FLOW
This policy returns null which means that the processor chain should stop and the rest of the processors should not be executed. |
|
| Method Summary | |
|---|---|
abstract MuleEvent |
handleNotAuthorized(Object source,
org.mule.common.security.oauth.exception.NotAuthorizedException e,
MuleEvent event)
This method handles a NotAuthorizedException
according to each policy |
static OnNoTokenPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OnNoTokenPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OnNoTokenPolicy EXCEPTION
NotAuthorizedException
public static final OnNoTokenPolicy STOP_FLOW
| Method Detail |
|---|
public static OnNoTokenPolicy[] values()
for (OnNoTokenPolicy c : OnNoTokenPolicy.values()) System.out.println(c);
public static OnNoTokenPolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract MuleEvent handleNotAuthorized(Object source,
org.mule.common.security.oauth.exception.NotAuthorizedException e,
MuleEvent event)
throws org.mule.common.security.oauth.exception.NotAuthorizedException
NotAuthorizedException
according to each policy
source - the unauthorized connectore - the exception thrownevent - the current mule event
null to signal that the chain execution should
stop
org.mule.common.security.oauth.exception.NotAuthorizedException - if the policy decides to simply bubble up the
exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||