public class SecurityManagerImpl extends Object implements SecurityManager
Constructor and Description |
---|
SecurityManagerImpl()
Creates a new security manager with the collection of given realms.
|
Modifier and Type | Method and Description |
---|---|
Subject |
getSubject(Object token)
Exchanges an authentication token for a subject.
|
List<String> |
getUsernameAttributeList() |
void |
setRealms(Collection<org.apache.shiro.realm.Realm> realms) |
void |
setUsernameAttributeList(List<String> usernameAttributeList) |
public SecurityManagerImpl()
public void setRealms(Collection<org.apache.shiro.realm.Realm> realms)
realms
- The realms used for the backing authZ and authN operations.public Subject getSubject(Object token) throws SecurityServiceException
SecurityManager
Subject
contains a security
assertion which can be used to obtain information about the current credentials.getSubject
in interface SecurityManager
token
- An object containing information about the user that can be used to populate the
subject.SecurityServiceException
- if an error occurs during the authentication processThis work is licensed under a Creative Commons Attribution 4.0 International License.