Class AntiSpoofingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AntiSpoofingException
    extends java.lang.Exception
    Anti-spoofing exception Thrown when the user fails to pass anti-spoofing measures in a liveness detection session
    See Also:
    Serialized Form
    • Constructor Detail

      • AntiSpoofingException

        public AntiSpoofingException​(AntiSpoofingException.Code code,
                                     Bearing requestedBearing)
        Constructor
        Parameters:
        code - Code
        requestedBearing - Requested bearing
    • Method Detail

      • getRequestedBearing

        public Bearing getRequestedBearing()
        Get requested bearing
        Returns:
        Bearing requested by the session when the exception was thrown
      • getMessage

        public java.lang.String getMessage()
        Get message
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        Human-readable message describing the exception