Uses of Class
org.apache.shiro.subject.Subject.Builder
Packages that use Subject.Builder
Package
Description
Components supporting the
Subject interface, the most important concept in
Shiro's API.-
Uses of Subject.Builder in org.apache.shiro.subject
Methods in org.apache.shiro.subject that return Subject.BuilderModifier and TypeMethodDescriptionSubject.Builder.authenticated(boolean authenticated) Ensures theSubjectbeing built will be consideredauthenticated.Subject.Builder.contextAttribute(String attributeKey, Object attributeValue) Allows custom attributes to be added to the underlying contextMapused to construct theSubjectinstance.Ensures theSubjectbeing built will reflect the specified host name or IP as its originating location.Subject.Builder.principals(PrincipalCollection principals) Ensures theSubjectbeing built will reflect the specified principals (aka identity).Ensures theSubjectbeing built will use the specifiedSessioninstance.Subject.Builder.sessionCreationEnabled(boolean enabled) Configures whether or not the created Subject instance can create a newSessionif one does not already exist.Subject.Builder.sessionId(Serializable sessionId)