Added missing constructor for extracted abstract class
This commit is contained in:
parent
b47f04a197
commit
e41a8f9c20
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue