Java org.apache.shiro.mgt DefaultSecurityManager fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.mgt DefaultSecurityManager fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Subclass

org.apache.shiro.mgt.DefaultSecurityManager has subclasses.
Click this link to see all its subclasses.

Constructor

DefaultSecurityManager()
Default no-arg constructor.
DefaultSecurityManager(Realm singleRealm)
Supporting constructor for a single-realm application.
DefaultSecurityManager(Collection realms)
Supporting constructor for multiple #setRealms realms .

Method

SubjectcreateSubject(SubjectContext subjectContext)
This implementation functions as follows:

  1. Ensures the SubjectContext is as populated as it can be, using heuristics to acquire data that may not have already been available to it (such as a referenced session or remembered principals).
  2. Calls #doCreateSubject(org.apache.shiro.subject.SubjectContext) to actually perform the Subject instance creation.
  3. calls #save(org.apache.shiro.subject.Subject) save(subject) to ensure the constructed Subject 's state is accessible for future requests/invocations if necessary.
  4. returns the constructed Subject instance.
RememberMeManagergetRememberMeManager()
SubjectDAOgetSubjectDAO()
Returns the SubjectDAO responsible for persisting Subject state, typically used after login or when an Subject identity is discovered (eg after RememberMe services).
Subjectlogin(Subject subject, AuthenticationToken token)
First authenticates the AuthenticationToken argument, and if successful, constructs a Subject instance representing the authenticated account's identity.
voidsetRememberMeManager(RememberMeManager rememberMeManager)
voidsetSubjectDAO(SubjectDAO subjectDAO)
Sets the SubjectDAO responsible for persisting Subject state, typically used after login or when an Subject identity is discovered (eg after RememberMe services).