Class SeedAuthorizationInfo
- java.lang.Object
-
- org.seedstack.seed.security.internal.authorization.SeedAuthorizationInfo
-
- All Implemented Interfaces:
Serializable,org.apache.shiro.authz.AuthorizationInfo
public class SeedAuthorizationInfo extends Object implements org.apache.shiro.authz.AuthorizationInfo
AuthorizationInfo that keeps the Roles and Permissions for SeedStack API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SeedAuthorizationInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRole(org.seedstack.seed.security.Role role)Adds a role and its permissions to the authorization info.Collection<org.apache.shiro.authz.Permission>getObjectPermissions()Set<org.seedstack.seed.security.Role>getObjectRoles()Collection<String>getRoles()Collection<String>getStringPermissions()
-
-
-
Method Detail
-
getRoles
public Collection<String> getRoles()
- Specified by:
getRolesin interfaceorg.apache.shiro.authz.AuthorizationInfo
-
getStringPermissions
public Collection<String> getStringPermissions()
- Specified by:
getStringPermissionsin interfaceorg.apache.shiro.authz.AuthorizationInfo
-
getObjectPermissions
public Collection<org.apache.shiro.authz.Permission> getObjectPermissions()
- Specified by:
getObjectPermissionsin interfaceorg.apache.shiro.authz.AuthorizationInfo
-
getObjectRoles
public Set<org.seedstack.seed.security.Role> getObjectRoles()
- Returns:
- a Set of
Role
-
addRole
public void addRole(org.seedstack.seed.security.Role role)
Adds a role and its permissions to the authorization info.- Parameters:
role- the role to add.
-
-