Interface ShieldListener
public interface ShieldListener
Callback for shield state changes. Register with AppShield.addListener(ShieldListener).
All callbacks are delivered on the EDT, so they may touch the UI directly. The framework itself never shows a dialog or terminates the app over a shield event -- what the user sees is entirely the app's decision, made here.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsignalRaised(ShieldSignal signal) A new runtime self-protection observation was recorded.voidstatusChanged(ShieldStatus status) The token status changed, for example fromShieldStatus.OKtoShieldStatus.REJECTED.
-
Method Details
-
statusChanged
The token status changed, for example from
ShieldStatus.OKtoShieldStatus.REJECTED.Branch on
ShieldStatus.isTransient()before reacting. A transient status means the service was unreachable and will likely be reachable again shortly; reacting to it the same way asShieldStatus.REJECTEDis how an app ends up locking out users on a bad connection. -
signalRaised
A new runtime self-protection observation was recorded. Informational: the attestation service decides what a signal means for token issuance, and it may reach a different conclusion than the device would.
-