mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Code refractoring and Formatting
This commit is contained in:
parent
a6905b52b1
commit
5fb94ebe0f
@ -36,6 +36,4 @@ public class AuthenticatorException extends Exception {
|
||||
public AuthenticatorException(String message, Throwable e) {
|
||||
super(message, e);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -35,6 +35,7 @@ public class OAuthValidatorFactory {
|
||||
|
||||
/**
|
||||
* The method check the configuration and provide the appropriate implementation for OAuth2TokenValidator
|
||||
*
|
||||
* @return OAuth2TokenValidator
|
||||
*/
|
||||
public static OAuth2TokenValidator getValidator() throws IllegalArgumentException {
|
||||
@ -51,7 +52,7 @@ public class OAuthValidatorFactory {
|
||||
hostUrl = authenticatorConfig.getParameters().get(AUTHENTICATOR_CONFIG_HOST_URL);
|
||||
adminUserName = authenticatorConfig.getParameters().get(AUTHENTICATOR_CONFIG_ADMIN_USERNAME);
|
||||
adminPassword = authenticatorConfig.getParameters().get(AUTHENTICATOR_CONFIG_ADMIN_PASSWORD);
|
||||
}else{
|
||||
} else {
|
||||
throw new IllegalArgumentException("Configuration parameters need to be defined in Authenticators.xml");
|
||||
}
|
||||
if (isRemote) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user