-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the callback for the SignalR connection state. Fix some bug…
…s around connecting to the A2A signalr service and mark the A2A Persist event listener APIs that take a thumbprint as not supported. Connecting and authenticating to the A2A signalr service is handled differently than signalr on the core service. The core service authenticates using an access token via restsharp which is able to use the windows certificate store. It then uses Okhttp with the access token to connect to the signalr service. Connecting to the A2A signalr service is done entirely using okhttp and passing a certificate. Okhttp can't pull a certificate out of the windows certificate store by thumbprint. The problem is difference in the authentication methods when using Okhttp.
- Loading branch information
1 parent
61366e4
commit 3c818e6
Showing
8 changed files
with
270 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/com/oneidentity/safeguard/safeguardjava/data/SafeguardEventListenerState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.oneidentity.safeguard.safeguardjava.data; | ||
|
||
/** <summary> | ||
* Connection state of the Safeguard event listener. | ||
*/ | ||
public enum SafeguardEventListenerState | ||
{ | ||
/** | ||
* Event listener connected. | ||
*/ | ||
Connected, | ||
/** | ||
* Event listener disconnected. | ||
*/ | ||
Disconnected | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...a/com/oneidentity/safeguard/safeguardjava/event/ISafeguardEventListenerStateCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.oneidentity.safeguard.safeguardjava.event; | ||
|
||
import com.oneidentity.safeguard.safeguardjava.data.SafeguardEventListenerState; | ||
|
||
/** | ||
* A callback that will be called whenever the event listener connection state Changes. | ||
*/ | ||
public interface ISafeguardEventListenerStateCallback { | ||
/** | ||
* Handles an incoming event listener connection change. | ||
* | ||
* @param eventListenerState New connection state of the event listener. | ||
*/ | ||
void onEventListenerStateChange(SafeguardEventListenerState eventListenerState); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.