Skip to content

Commit

Permalink
Merge pull request #6310 from bstansberry/WFCORE-7125
Browse files Browse the repository at this point in the history
[WFCORE-7125] Remove deprecated Authentication methods
  • Loading branch information
bstansberry authored Jan 15, 2025
2 parents bd4deab + dd85f72 commit a245d5a
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,11 @@

package org.jboss.as.test.http;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

/**
* @author Stuart Douglas
*/
public class Authentication {

public static final String USERNAME = "testSuite";
public static final String PASSWORD = "testSuitePassword";


@Deprecated
public static Authenticator getAuthenticator() {
return new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(USERNAME, PASSWORD.toCharArray());
}
};
}

/**
* @deprecated this could cause tests ran after this is set to fail, use the Apache HttpClient
*/
@Deprecated
public static void setupDefaultAuthenticator() {
Authenticator.setDefault(getAuthenticator());
}
}

0 comments on commit a245d5a

Please sign in to comment.