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 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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue