Skip to content

Commit 13125d0

Browse files
committed
Add AuthorizationDeniedException(String)
Closes gh-15607
1 parent 9e1d650 commit 13125d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/org/springframework/security/authorization/AuthorizationDeniedException.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public AuthorizationDeniedException(String msg, AuthorizationResult authorizatio
3636
this.result = authorizationResult;
3737
}
3838

39+
public AuthorizationDeniedException(String msg) {
40+
this(msg, new AuthorizationDecision(false));
41+
}
42+
3943
public AuthorizationResult getAuthorizationResult() {
4044
return this.result;
4145
}

0 commit comments

Comments
 (0)