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 String clientSecret;
protected URL tokenURL; protected URL tokenURL;
public AbstractHTTPWithJWTTokenAuthEventSender() { public AbstractHTTPWithJWTTokenAuthEventSender(URL baseEndpointURL, String clientId, String clientSecret,
URL tokenURL) {
super(); super();
this.baseEndpointURL = baseEndpointURL;
this.clientId = clientId;
this.clientSecret = clientSecret;
this.tokenURL = tokenURL;
} }
@Override @Override

View File

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

View File

@ -14,10 +14,10 @@ public class HTTPWithUMAAuthEventSender extends HTTPWithOIDCAuthEventSender {
private String umaAudience; 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) { String umaAudience) {
super(baseEnndpointURL, clientId, clientSecret, tokenURL); super(baseEndpointURL, clientId, clientSecret, tokenURL);
this.umaAudience = umaAudience; this.umaAudience = umaAudience;
} }