Skip to content

Commit

Permalink
Merge pull request #4 from ftiercelin/hostedSuppressionsAuthHeader
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
ftiercelin authored Dec 23, 2024
2 parents 50560c7 + 6299d37 commit 07c7116
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
import org.apache.hc.client5.http.auth.UsernamePasswordCredentials;

public class CredentialHelper {
/**
* Get credentials from the provided settings
* @param theUser Username for a Basic auth
* @param thePass Password for a Basic auth
* @param theToken Token for a Bearer auth, takes precedence over user/password
* @param theAuth Authorization header value, e.g. 'Basic dXNlcjpwYXNzd29yZA==', takes precedence over user/password or token
*
* @return credentials
*/
/**
* Get credentials from the provided settings
* @param theUser Username for a Basic auth
* @param thePass Password for a Basic auth
* @param theToken Token for a Bearer auth, takes precedence over user/password
* @param theAuth Authorization header value, e.g. 'Basic dXNlcjpwYXNzd29yZA==', takes precedence over user/password or token
*
* @return credentials
* @throws InvalidSettingException
*/
public static Credentials getCredentials(String theUser, char[] thePass, char[] theToken, char[] theAuth) throws InvalidSettingException {
Credentials _creds = null;

Expand Down

0 comments on commit 07c7116

Please sign in to comment.