Java org.apache.shiro.subject SubjectContext fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.subject SubjectContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.shiro.subject SubjectContext.

The text is from its open source code.

Method

AuthenticationTokengetAuthenticationToken()
SerializablegetSessionId()
Returns the session id of the session that should be associated with the constructed Subject instance.
booleanisAuthenticated()
Returns true if the constructed Subject should be considered authenticated, false otherwise.
booleanisSessionCreationEnabled()
Returns true if the constructed Subject should be allowed to create a session, false otherwise.
booleanresolveAuthenticated()
StringresolveHost()
PrincipalCollectionresolvePrincipals()
SecurityManagerresolveSecurityManager()
Resolves the SecurityManager instance that should be used to back the constructed Subject instance (typically used to support org.apache.shiro.subject.support.DelegatingSubject DelegatingSubject implementations).
SessionresolveSession()
voidsetAuthenticated(boolean authc)
Sets whether or not the constructed Subject instance should be considered as authenticated.
voidsetAuthenticationInfo(AuthenticationInfo info)
voidsetAuthenticationToken(AuthenticationToken token)
voidsetPrincipals(PrincipalCollection principals)
Sets the principals (aka identity) that the constructed Subject should reflect.
voidsetSecurityManager(SecurityManager securityManager)
Sets the SecurityManager instance that should be used to back the constructed Subject instance (typically used to support org.apache.shiro.subject.support.DelegatingSubject DelegatingSubject implementations).
voidsetSession(Session session)
Sets the Session to use when building the Subject instance.
voidsetSessionCreationEnabled(boolean enabled)
Sets whether or not the constructed Subject instance should be allowed to create a session, false otherwise.
voidsetSubject(Subject subject)
Sets the existing Subject that may be in use at the time the new Subject instance is being created.