added default null for configs

This commit is contained in:
Brian Long 2021-09-03 12:41:54 -04:00
parent 4f9e4eaa4d
commit d62a941e64

View File

@ -18,52 +18,72 @@ public interface ClientConfiguration {
/**
* @return The username for BASIC authentication.
*/
String getBasicAuthUsername();
default String getBasicAuthUsername() {
return null;
}
/**
* @return The corresponding password for the username in BASIC authentication.
*/
String getBasicAuthPassword();
default String getBasicAuthPassword() {
return null;
}
/**
* @return The token for BEARER authorization.
*/
String getBearerToken();
default String getBearerToken() {
return null;
}
/**
* @return The token URL for OAuth authorization.
*/
String getOAuthTokenUrl();
default String getOAuthTokenUrl() {
return null;
}
/**
* @return The client ID provided by the OAuth IdP administrator.
*/
String getOAuthClientId();
default String getOAuthClientId() {
return null;
}
/**
* @return The corresponding client secret for the client ID provided by the OAuth IdP administrator.
*/
String getOAuthClientSecret();
default String getOAuthClientSecret() {
return null;
}
/**
* @return The authorization code used in the OAuth Authorization Code flow.
*/
String getOAuthAuthCode();
default String getOAuthAuthCode() {
return null;
}
/**
* @return The redirect URL used in the OAuth Authorization Code flow.
*/
String getOAuthAuthRedirectUri();
default String getOAuthAuthRedirectUri() {
return null;
}
/**
* @return The username used in the OAuth Password Grant flow.
*/
String getOAuthUsername();
default String getOAuthUsername() {
return null;
}
/**
* @return The corresponding password for the username used in the OAuth Password Grant flow.
*/
String getOAuthPassword();
default String getOAuthPassword() {
return null;
}
/**
* This method creates an authorization filter based on the configuration