mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
Sample should permit people to anonymously call all methods except post(Account).
This commit is contained in:
parent
1fece47b49
commit
595a14dbd5
@ -4,10 +4,10 @@ import org.springframework.security.annotation.Secured;
|
||||
|
||||
public interface BankService {
|
||||
|
||||
@Secured("IS_AUTHENTICATED_REMEMBERED")
|
||||
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
|
||||
public Account readAccount(Long id);
|
||||
|
||||
@Secured("IS_AUTHENTICATED_REMEMBERED")
|
||||
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
|
||||
public Account[] findAccounts();
|
||||
|
||||
@Secured("ROLE_TELLER")
|
||||
|
Loading…
x
Reference in New Issue
Block a user