import java.util.concurrent.CompletableFuture;
import javax.servlet.ServletException;
import org.opendaylight.aaa.api.AuthenticationService;
-import org.opendaylight.aaa.api.CredentialAuth;
import org.opendaylight.aaa.api.IDMStoreException;
import org.opendaylight.aaa.api.IIDMStore;
-import org.opendaylight.aaa.api.PasswordCredentials;
+import org.opendaylight.aaa.api.PasswordCredentialAuth;
import org.opendaylight.aaa.api.StoreBuilder;
import org.opendaylight.aaa.api.TokenStore;
import org.opendaylight.aaa.api.password.service.PasswordHashService;
*/
public AAAShiroProvider(final DataBroker dataBroker,
final ICertificateManager certificateManager,
- final CredentialAuth<PasswordCredentials> credentialAuth,
+ final PasswordCredentialAuth credentialAuth,
final ShiroConfiguration shiroConfiguration,
final HttpService httpService,
final String moonEndpointPath,
initializeIIDMStore(iidmStore);
- tokenAuthenticators = buildTokenAuthenticators(credentialAuth);
+ tokenAuthenticators = new TokenAuthenticators(new HttpBasicAuth(credentialAuth));
try {
this.registerServletContexts();
INSTANCE_FUTURE.complete(this);
}
- private static TokenAuthenticators buildTokenAuthenticators(
- final CredentialAuth<PasswordCredentials> credentialAuth) {
- return new TokenAuthenticators(new HttpBasicAuth(credentialAuth));
- }
-
private void registerServletContexts() throws ServletException, NamespaceException {
LOG.info("attempting registration of AAA moon servlet");
requireNonNull(httpService, "httpService cannot be null").registerServlet(moonEndpointPath,