Added missing constructor for extracted abstract class

This commit is contained in:
Mauro Mugnaini 2024-03-05 15:06:11 +01:00
parent b47f04a197
commit e41a8f9c20
Signed by: mauro.mugnaini
GPG Key ID: 2440CFD0EB321EA8
3 changed files with 10 additions and 8 deletions

View File

@ -25,8 +25,14 @@ public abstract class AbstractHTTPWithJWTTokenAuthEventSender implements EventSe
protected String clientSecret;
protected URL tokenURL;
public AbstractHTTPWithJWTTokenAuthEventSender() {
public AbstractHTTPWithJWTTokenAuthEventSender(URL baseEndpointURL, String clientId, String clientSecret,
URL tokenURL) {
super();
this.baseEndpointURL = baseEndpointURL;
this.clientId = clientId;
this.clientSecret = clientSecret;
this.tokenURL = tokenURL;
}
@Override

View File

@ -9,11 +9,7 @@ import org.gcube.oidc.rest.OpenIdConnectRESTHelperException;
public class HTTPWithOIDCAuthEventSender extends AbstractHTTPWithJWTTokenAuthEventSender implements EventSender {
public HTTPWithOIDCAuthEventSender(URL baseEndpointURL, String clientId, String clientSecret, URL tokenURL) {
super();
this.baseEndpointURL = baseEndpointURL;
this.clientId = clientId;
this.clientSecret = clientSecret;
this.tokenURL = tokenURL;
super(baseEndpointURL, clientId, clientSecret, tokenURL);
}
protected JWTToken getAuthorizationToken() throws OpenIdConnectRESTHelperException {

View File

@ -14,10 +14,10 @@ public class HTTPWithUMAAuthEventSender extends HTTPWithOIDCAuthEventSender {
private String umaAudience;
public HTTPWithUMAAuthEventSender(URL baseEnndpointURL, String clientId, String clientSecret, URL tokenURL,
public HTTPWithUMAAuthEventSender(URL baseEndpointURL, String clientId, String clientSecret, URL tokenURL,
String umaAudience) {
super(baseEnndpointURL, clientId, clientSecret, tokenURL);
super(baseEndpointURL, clientId, clientSecret, tokenURL);
this.umaAudience = umaAudience;
}