Package org.signal.libsignal.net
Class RegistrationSessionState
-
- All Implemented Interfaces:
-
org.signal.libsignal.internal.NativeHandleGuard.Owner
public class RegistrationSessionState extends NativeHandleGuard.SimpleOwner
The state of a registration verification session as reported by the server.
-
-
Method Summary
Modifier and Type Method Description booleangetAllowedToRequestCode()Whether a verification code is allowed to be requested for this session. booleangetVerified()Whether the session is verified. DurationgetNextCall()How long the client should wait before requesting a call for verification. DurationgetNextSms()How long the client should wait before requesting an SMS for verification. DurationgetNextVerificationAttempt()How long the client should wait before requesting an SMS for verification. Set<ChallengeOption>getRequestedInformation()Requested information that needs to be submitted before requesting code delivery. -
Methods inherited from class org.signal.libsignal.internal.NativeHandleGuard.SimpleOwner
unsafeNativeHandleWithoutGuard -
Methods inherited from class org.signal.libsignal.internal.NativeHandleGuard.Owner
guard, guardedMap, guardedMapChecked, guardedRun, guardedRunChecked -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAllowedToRequestCode
boolean getAllowedToRequestCode()
Whether a verification code is allowed to be requested for this session.
-
getVerified
boolean getVerified()
Whether the session is verified.
-
getNextCall
Duration getNextCall()
How long the client should wait before requesting a call for verification.
Returns
nullif no waiting is requested.
-
getNextSms
Duration getNextSms()
How long the client should wait before requesting an SMS for verification.
Returns
nullif no waiting is requested.
-
getNextVerificationAttempt
Duration getNextVerificationAttempt()
How long the client should wait before requesting an SMS for verification.
Returns
nullif no waiting is requested.
-
getRequestedInformation
Set<ChallengeOption> getRequestedInformation()
Requested information that needs to be submitted before requesting code delivery.
-
-
-
-