Skip to content

Commit

Permalink
[WFCORE-7125] Remove deprecated Authentication methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bstansberry committed Dec 27, 2024
1 parent 604e53e commit dd85f72
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 dd85f72

Please sign in to comment.