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 Summary
Constructors Constructor Description AuthenticationContext() -
Method Summary
Modifier and Type Method Description IntegergetRemainingAttempts()Get remaining attempts for signature verification before activation gets blocked.io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypesgetSignatureType()Get PowerAuth signature type.booleanisValid()Get whether PowerAuth authentication succeeded.voidsetRemainingAttempts(Integer remainingAttempts)Set remaining attempts for signature verification before activation gets blocked.voidsetSignatureType(io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes signatureType)Set PowerAuth signature type.voidsetValid(boolean signatureValid)Set whether PowerAuth authentication succeeded.
-
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
Get remaining attempts for signature verification before activation gets blocked.- Returns:
- Remaining attempts for signature verification before activation gets blocked.
-
setRemainingAttempts
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.
-