Uses of Class
org.apache.shiro.subject.Subject.Builder
-
Packages that use Subject.Builder Package Description org.apache.shiro.subject Components supporting theSubject
interface, the most important concept in Shiro's API.org.apache.shiro.web.subject Web-specificSubject
interfaces to enableSubject
use in web environments. -
-
Uses of Subject.Builder in org.apache.shiro.subject
Methods in org.apache.shiro.subject that return Subject.Builder Modifier and Type Method Description Subject.Builder
Subject.Builder. authenticated(boolean authenticated)
Ensures theSubject
being built will be consideredauthenticated
.Subject.Builder
Subject.Builder. contextAttribute(String attributeKey, Object attributeValue)
Allows custom attributes to be added to the underlying contextMap
used to construct theSubject
instance.Subject.Builder
Subject.Builder. host(String host)
Ensures theSubject
being built will reflect the specified host name or IP as its originating location.Subject.Builder
Subject.Builder. principals(PrincipalCollection principals)
Ensures theSubject
being built will reflect the specified principals (aka identity).Subject.Builder
Subject.Builder. session(Session session)
Ensures theSubject
being built will use the specifiedSession
instance.Subject.Builder
Subject.Builder. sessionCreationEnabled(boolean enabled)
Configures whether or not the created Subject instance can create a newSession
if one does not already exist.Subject.Builder
Subject.Builder. sessionId(Serializable sessionId)
-
Uses of Subject.Builder in org.apache.shiro.web.subject
Subclasses of Subject.Builder in org.apache.shiro.web.subject Modifier and Type Class Description static class
WebSubject.Builder
AWebSubject.Builder
performs the same function as aSubject.Builder
, but additionally ensures that the Servlet request/response pair that is triggering the Subject instance's creation is retained for use by internal Shiro components as necessary.
-