Package io.mats3.matssocket
Enum Class AuthenticationPlugin.DebugOption
java.lang.Object
java.lang.Enum<AuthenticationPlugin.DebugOption>
io.mats3.matssocket.AuthenticationPlugin.DebugOption
- All Implemented Interfaces:
Serializable
,Comparable<AuthenticationPlugin.DebugOption>
,Constable
- Enclosing interface:
- AuthenticationPlugin
These bit-field enums (bit-field) is used by the Client to request different types of debug/meta information from
Server-side, and used by the
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").-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAuthenticationPlugin
-specific "Option A" - this is not used by MatsSocket itself, but can be employed and given a meaning by theAuthenticationPlugin
.AuthenticationPlugin
-specific "Option B" - this is not used by MatsSocket itself, but can be employed and given a meaning by theAuthenticationPlugin
.Node-name of the handling nodes of the separate phases.Timestamp info for the separate phases. -
Method Summary
Modifier and TypeMethodDescriptionenumSetOf
(int flags) static int
flags
(EnumSet<AuthenticationPlugin.DebugOption> debugOptions) Returns the enum constant of this class with the specified name.static AuthenticationPlugin.DebugOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TIMESTAMPS
Timestamp info for the separate phases. Note that time-skew between different nodes must be taken into account. -
NODES
Node-name of the handling nodes of the separate phases. -
CUSTOM_A
AuthenticationPlugin
-specific "Option A" - this is not used by MatsSocket itself, but can be employed and given a meaning by theAuthenticationPlugin
. Notice: You might be just as well off by implementing such functionality on thePrincipal
returned by theAuthenticationPlugin
("this user is allowed to request these things") - and on the request DTOs from the Client ("I would like to request these things"). -
CUSTOM_B
AuthenticationPlugin
-specific "Option B" - this is not used by MatsSocket itself, but can be employed and given a meaning by theAuthenticationPlugin
. Notice: You might be just as well off by implementing such functionality on thePrincipal
returned by theAuthenticationPlugin
("this user is allowed to request these things") - and on the request DTOs from the Client ("I would like to request these things").
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
enumSetOf
-
enumSetOf
-
flags
-