mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 02:49:11 +00:00
Minor code style corrections.
This commit is contained in:
parent
156965b370
commit
99cc55b94a
@ -45,7 +45,7 @@ public class OracleIDBindAuthenticator extends BindAuthenticator {
|
|||||||
protected void handleBindException(String userDn, String username, Throwable exception) {
|
protected void handleBindException(String userDn, String username, Throwable exception) {
|
||||||
int errorCode = parseOracleErrorCode(exception.getMessage());
|
int errorCode = parseOracleErrorCode(exception.getMessage());
|
||||||
|
|
||||||
if(errorCode > 0) {
|
if (errorCode > 0) {
|
||||||
switch (errorCode) {
|
switch (errorCode) {
|
||||||
case 9000:
|
case 9000:
|
||||||
throw new PasswordExpiredException("Password has expired. Please contact an administrator.");
|
throw new PasswordExpiredException("Password has expired. Please contact an administrator.");
|
||||||
@ -67,7 +67,7 @@ public class OracleIDBindAuthenticator extends BindAuthenticator {
|
|||||||
private int parseOracleErrorCode(String msg) {
|
private int parseOracleErrorCode(String msg) {
|
||||||
Matcher matcher = oidErrorMsgPattern.matcher(msg);
|
Matcher matcher = oidErrorMsgPattern.matcher(msg);
|
||||||
|
|
||||||
if(matcher.matches()) {
|
if (matcher.matches()) {
|
||||||
String code = matcher.group(2);
|
String code = matcher.group(2);
|
||||||
|
|
||||||
return Integer.parseInt(code);
|
return Integer.parseInt(code);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user