Uses of Class
org.nuclos.api.authentication.AuthenticationResult.Builder
Packages that use AuthenticationResult.Builder
-
Uses of AuthenticationResult.Builder in org.nuclos.api.authentication
Methods in org.nuclos.api.authentication that return AuthenticationResult.BuilderModifier and TypeMethodDescriptionstatic AuthenticationResult.BuilderAuthenticationResult.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.withAuthSourceTrusted(boolean trustAuthSource) 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_DEAuthenticationResult.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.