
yakworks.security.shiro.ShiroPermissionResolver.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rally-security Show documentation
Show all versions of rally-security Show documentation
integrates spring security with shiro for rest
/*
* Copyright 2013-2015 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package yakworks.security.shiro
import groovy.transform.CompileStatic
/**
* Implement this interface and register the class as the 'shiroPermissionResolver' bean.
*
* @author Burt Beckwith
*/
@CompileStatic
interface ShiroPermissionResolver {
/**
* Find the permissions granted to the specified user, e.g. using GORM.
*
* @param username the username
* @return zero or more permissions.
*/
Set resolvePermissions(String username)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy