Class SessionSecretHeader
java.lang.Object
dev.getelements.elements.security.SessionSecretHeader
Parses the value in the session secret header specified in
Headers.SESSION_SECRET
.-
Method Summary
Modifier and TypeMethodDescriptionGets the override profile ID.Gets the override user ID.Returns the session secret.static final <T> SessionSecretHeader
withOptionalValueSupplier
(HeaderOptionalSupplier<T> tOptionalSupplier) static final <T> SessionSecretHeader
withValueSupplier
(Function<String, T> tValueSupplier)
-
Method Details
-
withValueSupplier
-
withOptionalValueSupplier
public static final <T> SessionSecretHeader withOptionalValueSupplier(HeaderOptionalSupplier<T> tOptionalSupplier) -
getSessionSecret
Returns the session secret. Corresponds toSessionCreation.getSessionSecret()
- Returns:
- the session secret.
-
getOverrideUserId
Gets the override user ID. Corresponds toUser.getId()
- Returns:
- the override user ID.
-
getOverrideProfileId
Gets the override profile ID. Corresponds toProfile.getId()
- Returns:
- the override profile id.
-