Uses of Class
org.nuclos.api.authentication.AuthenticationResult.Builder
-
Uses of AuthenticationResult.Builder in org.nuclos.api.authentication
Modifier and TypeMethodDescriptionstatic AuthenticationResult.Builder
AuthenticationResult.builder()
Constructs a new builder instance for an authentication result with default settings.AuthenticationResult.Builder.withAttribute
(String attribute, String value) You can store important information here and access it later during a refresh.AuthenticationResult.Builder.withDataLanguage
(NuclosLocale dataLanguage) Data language for the new session, if in use be the system.AuthenticationResult.Builder.withLifetime
(long lifetime, TimeUnit unit) The default lifetime isAuthenticationResult.UNSET
, which means that the system is handling the session lifetime only and a refresh is never called.AuthenticationResult.Builder.withLocale
(NuclosLocale locale) Default isNuclosLocale.DE_DE
AuthenticationResult.Builder.withLoginRequired
(boolean loginRequired) AuthenticationResult.Builder.withMandatorId
(UID mandatorId) If mandators are in use, the new session will need a selected one, similar to the login with a web- or rich-client.AuthenticationResult.Builder.withServerUri
(URI serverUri) Clients can reach the application server via this base URI.AuthenticationResult.Builder.withUserId
(UID userId) Either username or user id must be specified.AuthenticationResult.Builder.withUsername
(String username) Either username or user id must be specified.