Class 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 Detail

      • SeedAuthorizationInfo

        public SeedAuthorizationInfo()
    • Method Detail

      • getRoles

        public Collection<String> getRoles()
        Specified by:
        getRoles in interface org.apache.shiro.authz.AuthorizationInfo
      • getStringPermissions

        public Collection<String> getStringPermissions()
        Specified by:
        getStringPermissions in interface org.apache.shiro.authz.AuthorizationInfo
      • getObjectPermissions

        public Collection<org.apache.shiro.authz.Permission> getObjectPermissions()
        Specified by:
        getObjectPermissions in interface org.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.