Package org.gcube.event.publisher
Class HTTPWithOIDCAuthEventSender
- java.lang.Object
-
- org.gcube.event.publisher.HTTPWithOIDCAuthEventSender
-
- All Implemented Interfaces:
EventSender
- Direct Known Subclasses:
HTTPWithUMAAuthEventSender
public class HTTPWithOIDCAuthEventSender extends Object implements EventSender
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHTTPWithOIDCAuthEventSender.HTTPGetclassHTTPWithOIDCAuthEventSender.HTTPPostclassHTTPWithOIDCAuthEventSender.HTTPVerb
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description HTTPWithOIDCAuthEventSender(URL baseEndpointURL, String clientId, String clientSecret, URL tokenURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.gcube.oidc.rest.JWTTokengetAuthorizationToken()protected URLgetTokenURL()org.json.simple.JSONObjectretrive(String id)voidsend(Event event)StringsendAndGetResult(Event event)
-
-
-
Method Detail
-
send
public void send(Event event)
- Specified by:
sendin interfaceEventSender
-
sendAndGetResult
public String sendAndGetResult(Event event)
- Specified by:
sendAndGetResultin interfaceEventSender
-
retrive
public org.json.simple.JSONObject retrive(String id)
- Specified by:
retrivein interfaceEventSender
-
getTokenURL
protected URL getTokenURL()
-
getAuthorizationToken
protected org.gcube.oidc.rest.JWTToken getAuthorizationToken() throws org.gcube.oidc.rest.OpenIdConnectRESTHelperException- Throws:
org.gcube.oidc.rest.OpenIdConnectRESTHelperException
-
-