From d62a941e64cafd9cb08b78224c09a4c45f0bdeeb Mon Sep 17 00:00:00 2001 From: "Brian M. Long" Date: Fri, 3 Sep 2021 12:41:54 -0400 Subject: [PATCH] added default null for configs --- .../com/inteligr8/rs/ClientConfiguration.java | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/inteligr8/rs/ClientConfiguration.java b/src/main/java/com/inteligr8/rs/ClientConfiguration.java index af36a80..dd2fd7f 100644 --- a/src/main/java/com/inteligr8/rs/ClientConfiguration.java +++ b/src/main/java/com/inteligr8/rs/ClientConfiguration.java @@ -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