Class AuthenticationContext

java.lang.Object
io.getlime.security.powerauth.rest.api.spring.model.AuthenticationContext

public class AuthenticationContext
extends Object
Class representing PowerAuth authentication context.
Author:
Roman Strobl, roman.strobl@wultra.com
  • Constructor Details

    • AuthenticationContext

      public AuthenticationContext()
  • Method Details

    • isValid

      public boolean isValid()
      Get whether PowerAuth authentication succeeded.
      Returns:
      Whether PowerAuth authentication succeeded.
    • setValid

      public void setValid​(boolean signatureValid)
      Set whether PowerAuth authentication succeeded.
      Parameters:
      signatureValid - Whether PowerAuth authentication succeeded.
    • getRemainingAttempts

      public Integer getRemainingAttempts()
      Get remaining attempts for signature verification before activation gets blocked.
      Returns:
      Remaining attempts for signature verification before activation gets blocked.
    • setRemainingAttempts

      public void setRemainingAttempts​(Integer remainingAttempts)
      Set remaining attempts for signature verification before activation gets blocked.
      Parameters:
      remainingAttempts - Remaining attempts for signature verification before activation gets blocked.
    • getSignatureType

      public io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes getSignatureType()
      Get PowerAuth signature type.
      Returns:
      PowerAuth signature type.
    • setSignatureType

      public void setSignatureType​(io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes signatureType)
      Set PowerAuth signature type.
      Parameters:
      signatureType - PowerAuth signature type.