If a GenericMethodSecurityExpressionHandler configured for a given authentication type, let's say OAuthentication<OpenidClaimSet>, then an exception is thrown when an other type of Authentication is in the security context (for instance an AnonymousAuthenticationToken, or whatever else one of the authentication managers can decide)
If a
GenericMethodSecurityExpressionHandler
configured for a given authentication type, let's sayOAuthentication<OpenidClaimSet>
, then an exception is thrown when an other type ofAuthentication
is in the security context (for instance anAnonymousAuthenticationToken
, or whatever else one of the authentication managers can decide)