public static enum AuthenticationPlugin.DebugOption extends java.lang.Enum<AuthenticationPlugin.DebugOption>
AuthenticationPlugin
to tell the MatsSocketServer
which types of
information the specific user is allowed to request - the resulting debug/meta information provided is the
intersection of the requested + allowed.
In addition to the functionality from the MatsSocket system, there is two "Custom Options" (CUSTOM_A
and
CUSTOM_B
) that are not employed by the MatsSocket system, but instead can be utilized and given meaning
by the MatsSocket employing service/application. Notice, however: You might be just as well off by implementing
such functionality on the Principal
returned by the AuthenticationPlugin
("this user is allowed
to request these things") - and on the request DTOs from the Client ("I would like to request these things").Enum Constant and Description |
---|
CUSTOM_A
AuthenticationPlugin -specific "Option A" - this is not used by MatsSocket itself, but can be employed
and given a meaning by the AuthenticationPlugin . |
CUSTOM_B
AuthenticationPlugin -specific "Option B" - this is not used by MatsSocket itself, but can be employed
and given a meaning by the AuthenticationPlugin . |
NODES
Node-name of the handling nodes of the separate phases.
|
TIMESTAMPS
Timestamp info for the separate phases.
|
Modifier and Type | Method and Description |
---|---|
static java.util.EnumSet<AuthenticationPlugin.DebugOption> |
enumSetOf(int flags) |
static java.util.EnumSet<AuthenticationPlugin.DebugOption> |
enumSetOf(java.lang.Integer flags) |
static int |
flags(java.util.EnumSet<AuthenticationPlugin.DebugOption> debugOptions) |
static AuthenticationPlugin.DebugOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationPlugin.DebugOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationPlugin.DebugOption TIMESTAMPS
public static final AuthenticationPlugin.DebugOption NODES
public static final AuthenticationPlugin.DebugOption CUSTOM_A
AuthenticationPlugin
-specific "Option A" - this is not used by MatsSocket itself, but can be employed
and given a meaning by the AuthenticationPlugin
.
Notice: You might be just as well off by implementing such functionality on the Principal
returned by
the AuthenticationPlugin
("this user is allowed to request these things") - and on the request DTOs
from the Client ("I would like to request these things").public static final AuthenticationPlugin.DebugOption CUSTOM_B
AuthenticationPlugin
-specific "Option B" - this is not used by MatsSocket itself, but can be employed
and given a meaning by the AuthenticationPlugin
.
Notice: You might be just as well off by implementing such functionality on the Principal
returned by
the AuthenticationPlugin
("this user is allowed to request these things") - and on the request DTOs
from the Client ("I would like to request these things").public static AuthenticationPlugin.DebugOption[] values()
for (AuthenticationPlugin.DebugOption c : AuthenticationPlugin.DebugOption.values()) System.out.println(c);
public static AuthenticationPlugin.DebugOption 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 static java.util.EnumSet<AuthenticationPlugin.DebugOption> enumSetOf(int flags)
public static java.util.EnumSet<AuthenticationPlugin.DebugOption> enumSetOf(java.lang.Integer flags)
public static int flags(java.util.EnumSet<AuthenticationPlugin.DebugOption> debugOptions)