Package | Description |
---|---|
org.apache.shiro.authc |
Core interfaces and exceptions concerning Authentication (the act of logging-in).
|
org.apache.shiro.authc.pam |
Support for PAM, or Pluggable Authentication Modules, which is
the capability to authenticate a user against multiple configurable (pluggable) modules (Shiro
calls these
Realm s). |
org.apache.shiro.authz |
Core interfaces and exceptions supporting Authorization (access control).
|
org.apache.shiro.cas | |
org.apache.shiro.mgt |
Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application. |
org.apache.shiro.realm |
Components and sub-packages used in supporting the core
Realm interface. |
org.apache.shiro.realm.activedirectory |
Realms that acquire security data from a Microsoft Active Directory.
|
org.apache.shiro.realm.jdbc |
Realms that acquire security data from an RDBMS (Relational Database Management System) using the
JDBC API.
|
org.apache.shiro.realm.ldap |
Realms that acquire security data from an LDAP (Lightweight Directory Access Protocol) server
utilizing LDAP/Naming APIs.
|
org.apache.shiro.subject |
Components supporting the
Subject interface, the most important concept in
Shiro's API. |
org.apache.shiro.subject.support |
Concrete support implementations of most of the
org.apache.shiro.subject interfaces. |
org.apache.shiro.util |
Your run-of-the-mill 'util' package for components and logic widely used across the framework that can't
find their home into a proper OO hierarchy (or, most likely for things used across many hierarchies).
|
org.apache.shiro.web.mgt |
Components supporting web-specific
SecurityManager implementations. |
org.apache.shiro.web.subject.support |
Supporting implementations of
org.apache.shiro.web.subject package interfaces. |
Modifier and Type | Field and Description |
---|---|
protected PrincipalCollection |
SimpleAuthenticationInfo.principals
The principals identifying the account associated with this AuthenticationInfo instance.
|
Modifier and Type | Method and Description |
---|---|
PrincipalCollection |
SimpleAuthenticationInfo.getPrincipals() |
PrincipalCollection |
SimpleAccount.getPrincipals()
Returns the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this
Account.
|
PrincipalCollection |
AuthenticationInfo.getPrincipals()
Returns all principals associated with the corresponding Subject.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractAuthenticator.notifyLogout(PrincipalCollection principals)
Notifies any registered
AuthenticationListener s that a
Subject has logged-out. |
void |
LogoutAware.onLogout(PrincipalCollection principals)
Callback triggered when a
Subject logs out of the system. |
void |
AuthenticationListener.onLogout(PrincipalCollection principals)
Callback triggered when a
Subject logs-out of the system. |
void |
AbstractAuthenticator.onLogout(PrincipalCollection principals)
This implementation merely calls
notifyLogout to allow any registered listeners
to react to the logout. |
void |
SimpleAuthenticationInfo.setPrincipals(PrincipalCollection principals)
Sets the identifying principal(s) represented by this instance.
|
void |
SimpleAccount.setPrincipals(PrincipalCollection principals)
Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this
Account.
|
Constructor and Description |
---|
SimpleAccount(PrincipalCollection principals,
Object credentials)
Constructs a SimpleAccount instance for the specified principals and credentials.
|
SimpleAccount(PrincipalCollection principals,
Object hashedCredentials,
ByteSource credentialsSalt)
Constructs a SimpleAccount instance for the specified principals and credentials.
|
SimpleAccount(PrincipalCollection principals,
Object credentials,
Set<String> roles)
Constructs a SimpleAccount instance for the specified principals and credentials, with the assigned roles.
|
SimpleAccount(PrincipalCollection principals,
Object credentials,
Set<String> roleNames,
Set<Permission> permissions)
Constructs a SimpleAccount instance from the given principals and credentials, with the
the assigned roles and permissions.
|
SimpleAuthenticationInfo(PrincipalCollection principals,
Object credentials)
Constructor that takes in an account's identifying principal(s) and its corresponding credentials that verify
the principals.
|
SimpleAuthenticationInfo(PrincipalCollection principals,
Object hashedCredentials,
ByteSource credentialsSalt)
Constructor that takes in an account's identifying principal(s), hashed credentials used to verify the
principals, and the salt used when hashing the credentials.
|
Modifier and Type | Method and Description |
---|---|
void |
ModularRealmAuthenticator.onLogout(PrincipalCollection principals)
First calls
super.onLogout(principals) to ensure a logout notification is issued, and for each
wrapped Realm that implements the LogoutAware interface, calls
((LogoutAware)realm).onLogout(principals) to allow each realm the opportunity to perform
logout/cleanup operations during an user-logout. |
Modifier and Type | Method and Description |
---|---|
void |
ModularRealmAuthorizer.checkPermission(PrincipalCollection principals,
Permission permission)
If !
|
void |
Authorizer.checkPermission(PrincipalCollection subjectPrincipal,
Permission permission)
Ensures a subject/user
Permission.implies(Permission) implies} the specified Permission. |
void |
ModularRealmAuthorizer.checkPermission(PrincipalCollection principals,
String permission)
If !
|
void |
Authorizer.checkPermission(PrincipalCollection subjectPrincipal,
String permission)
Ensures the corresponding Subject/user implies the specified permission String.
|
void |
ModularRealmAuthorizer.checkPermissions(PrincipalCollection principals,
Collection<Permission> permissions)
If !
|
void |
Authorizer.checkPermissions(PrincipalCollection subjectPrincipal,
Collection<Permission> permissions)
Ensures the corresponding Subject/user
implies all of the
specified permission strings. |
void |
ModularRealmAuthorizer.checkPermissions(PrincipalCollection principals,
String... permissions)
If !
|
void |
Authorizer.checkPermissions(PrincipalCollection subjectPrincipal,
String... permissions)
Ensures the corresponding Subject/user
implies all of the
specified permission strings. |
void |
ModularRealmAuthorizer.checkRole(PrincipalCollection principals,
String role)
If !
|
void |
Authorizer.checkRole(PrincipalCollection subjectPrincipal,
String roleIdentifier)
Asserts the corresponding Subject/user has the specified role by returning quietly if they do or throwing an
AuthorizationException if they do not. |
void |
ModularRealmAuthorizer.checkRoles(PrincipalCollection principals,
Collection<String> roles)
|
void |
Authorizer.checkRoles(PrincipalCollection subjectPrincipal,
Collection<String> roleIdentifiers)
Asserts the corresponding Subject/user has all of the specified roles by returning quietly if they do or
throwing an
AuthorizationException if they do not. |
void |
ModularRealmAuthorizer.checkRoles(PrincipalCollection principals,
String... roles)
Calls
checkRole for each role specified. |
void |
Authorizer.checkRoles(PrincipalCollection subjectPrincipal,
String... roleIdentifiers)
Same as
checkRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers) but doesn't require a collection
as an argument. |
boolean |
ModularRealmAuthorizer.hasAllRoles(PrincipalCollection principals,
Collection<String> roleIdentifiers)
Returns
true iff any of the configured realms'
ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String) call returns true for
all roles specified, false otherwise. |
boolean |
Authorizer.hasAllRoles(PrincipalCollection subjectPrincipal,
Collection<String> roleIdentifiers)
Returns true if the corresponding Subject/user has all of the specified roles, false otherwise.
|
boolean |
ModularRealmAuthorizer.hasRole(PrincipalCollection principals,
String roleIdentifier)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String) call returns true ,
false otherwise. |
boolean |
Authorizer.hasRole(PrincipalCollection subjectPrincipal,
String roleIdentifier)
Returns true if the corresponding Subject/user has the specified role, false otherwise.
|
boolean[] |
ModularRealmAuthorizer.hasRoles(PrincipalCollection principals,
List<String> roleIdentifiers)
Calls
ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String) for each role name in the specified
collection and places the return value from each call at the respective location in the returned array. |
boolean[] |
Authorizer.hasRoles(PrincipalCollection subjectPrincipal,
List<String> roleIdentifiers)
Checks if the corresponding Subject/user has the specified roles, returning a boolean array indicating
which roles are associated with the given subject.
|
boolean[] |
ModularRealmAuthorizer.isPermitted(PrincipalCollection principals,
List<Permission> permissions)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, List) call returns true ,
false otherwise. |
boolean[] |
Authorizer.isPermitted(PrincipalCollection subjectPrincipal,
List<Permission> permissions)
Checks if the corresponding Subject/user implies the given Permissions and returns a boolean array indicating
which permissions are implied.
|
boolean |
ModularRealmAuthorizer.isPermitted(PrincipalCollection principals,
Permission permission)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission) call returns true ,
false otherwise. |
boolean |
Authorizer.isPermitted(PrincipalCollection subjectPrincipal,
Permission permission)
Returns true if the corresponding subject/user is permitted to perform an action or access a resource
summarized by the specified permission.
|
boolean[] |
ModularRealmAuthorizer.isPermitted(PrincipalCollection principals,
String... permissions)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermittedAll(org.apache.shiro.subject.PrincipalCollection, String...) call returns
true , false otherwise. |
boolean[] |
Authorizer.isPermitted(PrincipalCollection subjectPrincipal,
String... permissions)
Checks if the corresponding Subject implies the given permission strings and returns a boolean array
indicating which permissions are implied.
|
boolean |
ModularRealmAuthorizer.isPermitted(PrincipalCollection principals,
String permission)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, String) returns true ,
false otherwise. |
boolean |
Authorizer.isPermitted(PrincipalCollection principals,
String permission)
Returns true if the corresponding subject/user is permitted to perform an action or access a resource
summarized by the specified permission string.
|
boolean |
ModularRealmAuthorizer.isPermittedAll(PrincipalCollection principals,
Collection<Permission> permissions)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission) call returns true
for all of the specified Permissions, false otherwise. |
boolean |
Authorizer.isPermittedAll(PrincipalCollection subjectPrincipal,
Collection<Permission> permissions)
Returns true if the corresponding Subject/user implies all of the specified permissions, false
otherwise.
|
boolean |
ModularRealmAuthorizer.isPermittedAll(PrincipalCollection principals,
String... permissions)
Returns
true if any of the configured realms'
ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, String) call returns true
for all of the specified string permissions, false otherwise. |
boolean |
Authorizer.isPermittedAll(PrincipalCollection subjectPrincipal,
String... permissions)
Returns true if the corresponding Subject/user implies all of the specified permission strings,
false otherwise.
|
Modifier and Type | Method and Description |
---|---|
protected AuthorizationInfo |
CasRealm.doGetAuthorizationInfo(PrincipalCollection principals)
Deprecated.
Retrieves the AuthorizationInfo for the given principals (the CAS previously authenticated user : id + attributes).
|
Modifier and Type | Method and Description |
---|---|
protected PrincipalCollection |
AbstractRememberMeManager.convertBytesToPrincipals(byte[] bytes,
SubjectContext subjectContext)
If a
cipherService is available, it will be used to first decrypt the byte array. |
protected PrincipalCollection |
AbstractRememberMeManager.deserialize(byte[] serializedIdentity)
De-serializes the given byte array by using the
serializer 's
deserialize method. |
protected PrincipalCollection |
AbstractRememberMeManager.getIdentityToRemember(Subject subject,
AuthenticationInfo info)
Returns
info . |
protected PrincipalCollection |
DefaultSecurityManager.getRememberedIdentity(SubjectContext subjectContext) |
PrincipalCollection |
RememberMeManager.getRememberedPrincipals(SubjectContext subjectContext)
Based on the specified subject context map being used to build a Subject instance, returns any previously
remembered principals for the subject for automatic identity association (aka 'Remember Me').
|
PrincipalCollection |
AbstractRememberMeManager.getRememberedPrincipals(SubjectContext subjectContext)
Implements the interface method by first
acquiring
the remembered serialized byte array. |
protected PrincipalCollection |
AbstractRememberMeManager.onRememberedPrincipalFailure(RuntimeException e,
SubjectContext context)
Called when an exception is thrown while trying to retrieve principals.
|
Modifier and Type | Method and Description |
---|---|
Serializer<PrincipalCollection> |
AbstractRememberMeManager.getSerializer()
Returns the
Serializer used to serialize and deserialize PrincipalCollection instances for
persistent remember me storage. |
Modifier and Type | Method and Description |
---|---|
void |
AuthorizingSecurityManager.checkPermission(PrincipalCollection principals,
Permission permission) |
void |
AuthorizingSecurityManager.checkPermission(PrincipalCollection principals,
String permission) |
void |
AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals,
Collection<Permission> permissions) |
void |
AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals,
String... permissions) |
void |
AuthorizingSecurityManager.checkRole(PrincipalCollection principals,
String role) |
void |
AuthorizingSecurityManager.checkRoles(PrincipalCollection principals,
Collection<String> roles) |
void |
AuthorizingSecurityManager.checkRoles(PrincipalCollection principals,
String... roles) |
protected byte[] |
AbstractRememberMeManager.convertPrincipalsToBytes(PrincipalCollection principals)
Converts the given principal collection the byte array that will be persisted to be 'remembered' later.
|
boolean |
AuthorizingSecurityManager.hasAllRoles(PrincipalCollection principals,
Collection<String> roleIdentifiers) |
boolean |
AuthorizingSecurityManager.hasRole(PrincipalCollection principals,
String roleIdentifier) |
boolean[] |
AuthorizingSecurityManager.hasRoles(PrincipalCollection principals,
List<String> roleIdentifiers) |
boolean[] |
AuthorizingSecurityManager.isPermitted(PrincipalCollection principals,
List<Permission> permissions) |
boolean |
AuthorizingSecurityManager.isPermitted(PrincipalCollection principals,
Permission permission) |
boolean[] |
AuthorizingSecurityManager.isPermitted(PrincipalCollection principals,
String... permissions) |
boolean |
AuthorizingSecurityManager.isPermitted(PrincipalCollection principals,
String permissionString) |
boolean |
AuthorizingSecurityManager.isPermittedAll(PrincipalCollection principals,
Collection<Permission> permissions) |
boolean |
AuthorizingSecurityManager.isPermittedAll(PrincipalCollection principals,
String... permissions) |
protected Subject |
DefaultSubjectFactory.newSubjectInstance(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
SecurityManager securityManager)
Deprecated.
since 1.2 - override
DefaultSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext) directly if you
need to instantiate a custom Subject class. |
protected void |
AbstractRememberMeManager.rememberIdentity(Subject subject,
PrincipalCollection accountPrincipals)
Remembers the specified account principals by first
converting them to a byte
array and then remembers that
byte array. |
protected byte[] |
AbstractRememberMeManager.serialize(PrincipalCollection principals)
Serializes the given
principals by serializing them to a byte array by using the
serializer 's serialize method. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractRememberMeManager.setSerializer(Serializer<PrincipalCollection> serializer)
Sets the
Serializer used to serialize and deserialize PrincipalCollection instances for
persistent remember me storage. |
Modifier and Type | Method and Description |
---|---|
void |
AuthorizingRealm.checkPermission(PrincipalCollection principal,
Permission permission) |
void |
AuthorizingRealm.checkPermission(PrincipalCollection subjectIdentifier,
String permission) |
void |
AuthorizingRealm.checkPermissions(PrincipalCollection principal,
Collection<Permission> permissions) |
void |
AuthorizingRealm.checkPermissions(PrincipalCollection subjectIdentifier,
String... permissions) |
void |
AuthorizingRealm.checkRole(PrincipalCollection principal,
String role) |
void |
AuthorizingRealm.checkRoles(PrincipalCollection principal,
Collection<String> roles) |
void |
AuthorizingRealm.checkRoles(PrincipalCollection principal,
String... roles) |
protected void |
CachingRealm.clearCache(PrincipalCollection principals)
Clears out any cached data associated with the specified account identity/identities.
|
protected void |
AuthenticatingRealm.clearCachedAuthenticationInfo(PrincipalCollection principals)
Clears out the AuthenticationInfo cache entry for the specified account.
|
protected void |
AuthorizingRealm.clearCachedAuthorizationInfo(PrincipalCollection principals)
Clears out the AuthorizationInfo cache entry for the specified account.
|
protected void |
CachingRealm.doClearCache(PrincipalCollection principals)
This implementation does nothing - it is a template to be overridden by subclasses if necessary.
|
protected void |
AuthorizingRealm.doClearCache(PrincipalCollection principals)
Calls
super.doClearCache to ensure any cached authentication data is removed and then calls
AuthorizingRealm.clearCachedAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection) to remove any cached
authorization data. |
protected void |
AuthenticatingRealm.doClearCache(PrincipalCollection principals)
This implementation clears out any cached authentication data by calling
AuthenticatingRealm.clearCachedAuthenticationInfo(org.apache.shiro.subject.PrincipalCollection) . |
protected AuthorizationInfo |
SimpleAccountRealm.doGetAuthorizationInfo(PrincipalCollection principals) |
protected abstract AuthorizationInfo |
AuthorizingRealm.doGetAuthorizationInfo(PrincipalCollection principals)
Retrieves the AuthorizationInfo for the given principals from the underlying data store.
|
protected Object |
AuthenticatingRealm.getAuthenticationCacheKey(PrincipalCollection principals)
Returns the key under which
AuthenticationInfo instances are cached if authentication caching is enabled. |
protected Object |
AuthorizingRealm.getAuthorizationCacheKey(PrincipalCollection principals) |
protected AuthorizationInfo |
AuthorizingRealm.getAuthorizationInfo(PrincipalCollection principals)
Returns an account's authorization-specific information for the specified
principals ,
or null if no account could be found. |
protected Object |
CachingRealm.getAvailablePrincipal(PrincipalCollection principals)
A utility method for subclasses that returns the first available principal of interest to this particular realm.
|
protected String |
SimpleAccountRealm.getUsername(PrincipalCollection principals) |
boolean |
AuthorizingRealm.hasAllRoles(PrincipalCollection principal,
Collection<String> roleIdentifiers) |
boolean |
AuthorizingRealm.hasRole(PrincipalCollection principal,
String roleIdentifier) |
boolean[] |
AuthorizingRealm.hasRoles(PrincipalCollection principal,
List<String> roleIdentifiers) |
boolean[] |
AuthorizingRealm.isPermitted(PrincipalCollection principals,
List<Permission> permissions) |
boolean |
AuthorizingRealm.isPermitted(PrincipalCollection principals,
Permission permission) |
boolean[] |
AuthorizingRealm.isPermitted(PrincipalCollection subjectIdentifier,
String... permissions) |
boolean |
AuthorizingRealm.isPermitted(PrincipalCollection principals,
String permission) |
boolean |
AuthorizingRealm.isPermittedAll(PrincipalCollection principal,
Collection<Permission> permissions) |
boolean |
AuthorizingRealm.isPermittedAll(PrincipalCollection subjectIdentifier,
String... permissions) |
void |
CachingRealm.onLogout(PrincipalCollection principals)
If caching is enabled, this will clear any cached data associated with the specified account identity.
|
Modifier and Type | Method and Description |
---|---|
protected AuthorizationInfo |
ActiveDirectoryRealm.queryForAuthorizationInfo(PrincipalCollection principals,
LdapContextFactory ldapContextFactory)
Builds an
AuthorizationInfo object by querying the active directory LDAP context for the
groups that a user is a member of. |
Modifier and Type | Method and Description |
---|---|
protected AuthorizationInfo |
JdbcRealm.doGetAuthorizationInfo(PrincipalCollection principals)
This implementation of the interface expects the principals collection to return a String username keyed off of
this realm's
name |
Modifier and Type | Method and Description |
---|---|
protected AuthorizationInfo |
DefaultLdapRealm.doGetAuthorizationInfo(PrincipalCollection principals) |
protected AuthorizationInfo |
AbstractLdapRealm.doGetAuthorizationInfo(PrincipalCollection principals) |
protected AuthorizationInfo |
DefaultLdapRealm.queryForAuthorizationInfo(PrincipalCollection principals,
LdapContextFactory ldapContextFactory)
Method that should be implemented by subclasses to build an
AuthorizationInfo object by querying the LDAP context for the
specified principal. |
protected abstract AuthorizationInfo |
AbstractLdapRealm.queryForAuthorizationInfo(PrincipalCollection principal,
LdapContextFactory ldapContextFactory)
Abstract method that should be implemented by subclasses to builds an
AuthorizationInfo object by querying the LDAP context for the
specified principal. |
Modifier and Type | Interface and Description |
---|---|
interface |
MutablePrincipalCollection
A
PrincipalCollection that allows modification. |
interface |
PrincipalMap
EXPERIMENTAL - DO NOT USE YET
A
PrincipalMap is map of all of a subject's principals - its identifying attributes like username, userId,
etc. |
Modifier and Type | Class and Description |
---|---|
class |
SimplePrincipalCollection
A simple implementation of the
MutablePrincipalCollection interface that tracks principals internally
by storing them in a LinkedHashMap . |
class |
SimplePrincipalMap
Default implementation of the
PrincipalMap interface. |
Modifier and Type | Method and Description |
---|---|
PrincipalCollection |
Subject.getPreviousPrincipals()
Returns the previous 'pre run as' identity of this
Subject before assuming the current
runAs identity, or null if this Subject is not operating under an assumed
identity (normal state). |
PrincipalCollection |
SubjectContext.getPrincipals()
Returns the principals (aka identity) that the constructed
Subject should reflect. |
PrincipalCollection |
Subject.getPrincipals()
Returns this Subject's principals (identifying attributes) in the form of a
PrincipalCollection or
null if this Subject is anonymous because it doesn't yet have any associated account data (for example,
if they haven't logged in). |
PrincipalCollection |
Subject.releaseRunAs()
Releases the current 'run as' (assumed) identity and reverts back to the previous 'pre run as'
identity that existed before
#runAs runAs was called. |
PrincipalCollection |
SubjectContext.resolvePrincipals() |
Modifier and Type | Method and Description |
---|---|
void |
SimplePrincipalCollection.addAll(PrincipalCollection principals) |
void |
MutablePrincipalCollection.addAll(PrincipalCollection principals)
Adds all of the principals from the given principal collection to this collection.
|
Subject.Builder |
Subject.Builder.principals(PrincipalCollection principals)
Ensures the
Subject being built will reflect the specified principals (aka identity). |
void |
Subject.runAs(PrincipalCollection principals)
Allows this subject to 'run as' or 'assume' another identity indefinitely.
|
void |
SubjectContext.setPrincipals(PrincipalCollection principals)
Sets the principals (aka identity) that the constructed
Subject should reflect. |
Constructor and Description |
---|
SimplePrincipalCollection(PrincipalCollection principals) |
Modifier and Type | Field and Description |
---|---|
protected PrincipalCollection |
DelegatingSubject.principals |
Modifier and Type | Method and Description |
---|---|
PrincipalCollection |
DelegatingSubject.getPreviousPrincipals() |
PrincipalCollection |
DelegatingSubject.getPrincipals() |
PrincipalCollection |
DefaultSubjectContext.getPrincipals() |
PrincipalCollection |
DelegatingSubject.releaseRunAs() |
PrincipalCollection |
DefaultSubjectContext.resolvePrincipals() |
Modifier and Type | Method and Description |
---|---|
void |
DelegatingSubject.runAs(PrincipalCollection principals) |
void |
DefaultSubjectContext.setPrincipals(PrincipalCollection principals) |
Constructor and Description |
---|
DelegatingSubject(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
boolean sessionCreationEnabled,
SecurityManager securityManager) |
DelegatingSubject(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
SecurityManager securityManager) |
Modifier and Type | Method and Description |
---|---|
static boolean |
CollectionUtils.isEmpty(PrincipalCollection principals)
Deprecated.
Use PrincipalCollection.isEmpty() directly.
|
Modifier and Type | Method and Description |
---|---|
protected Subject |
DefaultWebSubjectFactory.newSubjectInstance(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
ServletRequest request,
ServletResponse response,
SecurityManager securityManager)
Deprecated.
since 1.2 - override
DefaultWebSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext) directly if you
need to instantiate a custom Subject class. |
Constructor and Description |
---|
WebDelegatingSubject(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
boolean sessionEnabled,
ServletRequest request,
ServletResponse response,
SecurityManager securityManager) |
WebDelegatingSubject(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
ServletRequest request,
ServletResponse response,
SecurityManager securityManager) |
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.