mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-01 00:02:13 +00:00
Add AuthorizationDeniedException(String)
Closes gh-15607
This commit is contained in:
parent
9e1d6501b0
commit
13125d0745
@ -36,6 +36,10 @@ public class AuthorizationDeniedException extends AccessDeniedException implemen
|
|||||||
this.result = authorizationResult;
|
this.result = authorizationResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AuthorizationDeniedException(String msg) {
|
||||||
|
this(msg, new AuthorizationDecision(false));
|
||||||
|
}
|
||||||
|
|
||||||
public AuthorizationResult getAuthorizationResult() {
|
public AuthorizationResult getAuthorizationResult() {
|
||||||
return this.result;
|
return this.result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user