mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-02-07 14:04:48 +00:00
16 lines
348 B
Java
16 lines
348 B
Java
|
|
package bigbank;
|
||
|
|
|
||
|
|
import org.springframework.security.annotation.Secured;
|
||
|
|
|
||
|
|
public interface BankService {
|
||
|
|
|
||
|
|
@Secured("IS_AUTHENTICATED_REMEMBERED")
|
||
|
|
public Account readAccount(Long id);
|
||
|
|
|
||
|
|
@Secured("IS_AUTHENTICATED_REMEMBERED")
|
||
|
|
public Account[] findAccounts();
|
||
|
|
|
||
|
|
@Secured("ROLE_TELLER")
|
||
|
|
public Account post(Account account, double amount);
|
||
|
|
}
|