Class AcsWebhooksHandler


  • public class AcsWebhooksHandler
    extends Object
    Handler for processing AcsWebhooks.

    This class provides functionality to deserialize the payload of AcsWebhooks events.

    • Constructor Detail

      • AcsWebhooksHandler

        public AcsWebhooksHandler​(String payload)
        Constructs a new handler for the given webhook payload
        Parameters:
        payload - the raw JSON payload from the webhook
    • Method Detail

      • getAuthenticationNotificationRequest

        public Optional<AuthenticationNotificationRequest> getAuthenticationNotificationRequest()
        Attempts to deserialize the webhook payload into a AuthenticationNotificationRequest
        Returns:
        an Optional containing the deserialized object, or empty if deserialization fails
      • getRelayedAuthenticationRequest

        public Optional<RelayedAuthenticationRequest> getRelayedAuthenticationRequest()
        Attempts to deserialize the webhook payload into a RelayedAuthenticationRequest
        Returns:
        an Optional containing the deserialized object, or empty if deserialization fails