Commit 93049ec
committed
Provide a setter for validationException
If a subclass needs to extend isValid(String), it must be able to set
the validation exception. In fact, overriding any of the non-private
validateXXX methods is trivial, because a ValidationError can simply be
thrown, but if additional validation is required, which is not covered
by any of those validateXXX methods, a subclass may need to override
isValid(String) directly, and this does not throw ValidationError, but
rather catches it so that it can be subsequently returned by
getValidationException() to the consumer. Hence, a setter with at least
protected visibility is needed for subclasses to do the same.1 parent 6589f28 commit 93049ec
File tree
1 file changed
+11
-0
lines changed- core/src/main/java/com/onelogin/saml2/authn
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1025 | 1036 | | |
1026 | 1037 | | |
1027 | 1038 | | |
| |||
0 commit comments