Interface Passwords.Discovery
-
- All Implemented Interfaces:
public interface Passwords.Discovery
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPasswords.Discovery.ResetByEmailStartParametersA data class used for wrapping the parameters used in a Passwords.Discovery.ResetByEmailStart call
public final classPasswords.Discovery.ResetByEmailParametersA data class used for wrapping the parameters used in a Passwords.Discovery.ResetByEmail call
public final classPasswords.Discovery.AuthenticateParametersA data class used for wrapping the parameters used in a Passwords.Discovery.Authenticate call
-
Method Summary
Modifier and Type Method Description abstract StytchResult<BasicData>resetByEmailStart(Passwords.Discovery.ResetByEmailStartParameters parameters)The resetByEmailStartmethod wraps the Reset By Email Discovery Start Password API endpoint.abstract UnitresetByEmailStart(Passwords.Discovery.ResetByEmailStartParameters parameters, Function1<StytchResult<BasicData>, Unit> callback)The resetByEmailStartmethod wraps the Reset By Email Discovery Start Password API endpoint.abstract CompletableFuture<StytchResult<BasicData>>resetByEmailStartCompletable(Passwords.Discovery.ResetByEmailStartParameters parameters)The resetByEmailStartmethod wraps the Reset By Email Discovery Start Password API endpoint.abstract StytchResult<B2BPasswordDiscoveryResetByEmailResponseData>resetByEmail(Passwords.Discovery.ResetByEmailParameters parameters)The resetByEmailmethod wraps the Reset By Email Discovery Password API endpoint.abstract UnitresetByEmail(Passwords.Discovery.ResetByEmailParameters parameters, Function1<StytchResult<B2BPasswordDiscoveryResetByEmailResponseData>, Unit> callback)The resetByEmailmethod wraps the Reset By Email Discovery Password API endpoint.abstract CompletableFuture<StytchResult<B2BPasswordDiscoveryResetByEmailResponseData>>resetByEmailCompletable(Passwords.Discovery.ResetByEmailParameters parameters)The resetByEmailmethod wraps the Reset By Email Discovery Password API endpoint.abstract StytchResult<B2BPasswordDiscoveryAuthenticateResponseData>authenticate(Passwords.Discovery.AuthenticateParameters parameters)The authenticatemethod wraps the Discovery Authenticate Password API endpoint.abstract Unitauthenticate(Passwords.Discovery.AuthenticateParameters parameters, Function1<StytchResult<B2BPasswordDiscoveryAuthenticateResponseData>, Unit> callback)The authenticatemethod wraps the Discovery Authenticate Password API endpoint.abstract CompletableFuture<StytchResult<B2BPasswordDiscoveryAuthenticateResponseData>>authenticateCompletable(Passwords.Discovery.AuthenticateParameters parameters)The authenticatemethod wraps the Discovery Authenticate Password API endpoint.-
-
Method Detail
-
resetByEmailStart
abstract StytchResult<BasicData> resetByEmailStart(Passwords.Discovery.ResetByEmailStartParameters parameters)
The
resetByEmailStartmethod wraps the Reset By Email Discovery Start Password API endpoint. If this method succeeds, an email will be sent to the provided email address with a link to reset the password.- Parameters:
parameters-- Returns:
BaseResponse
-
resetByEmailStart
abstract Unit resetByEmailStart(Passwords.Discovery.ResetByEmailStartParameters parameters, Function1<StytchResult<BasicData>, Unit> callback)
The
resetByEmailStartmethod wraps the Reset By Email Discovery Start Password API endpoint. If this method succeeds, an email will be sent to the provided email address with a link to reset the password.- Parameters:
parameters-callback-a callback that receives a BaseResponse
-
resetByEmailStartCompletable
abstract CompletableFuture<StytchResult<BasicData>> resetByEmailStartCompletable(Passwords.Discovery.ResetByEmailStartParameters parameters)
The
resetByEmailStartmethod wraps the Reset By Email Discovery Start Password API endpoint. If this method succeeds, an email will be sent to the provided email address with a link to reset the password.- Parameters:
parameters-- Returns:
CompletableFuture<BaseResponse>
-
resetByEmail
abstract StytchResult<B2BPasswordDiscoveryResetByEmailResponseData> resetByEmail(Passwords.Discovery.ResetByEmailParameters parameters)
The
resetByEmailmethod wraps the Reset By Email Discovery Password API endpoint. This endpoint resets the password associated with an email and starts an intermediate session for the user.- Parameters:
parameters-- Returns:
B2BPasswordDiscoveryResetByEmailResponse
-
resetByEmail
abstract Unit resetByEmail(Passwords.Discovery.ResetByEmailParameters parameters, Function1<StytchResult<B2BPasswordDiscoveryResetByEmailResponseData>, Unit> callback)
The
resetByEmailmethod wraps the Reset By Email Discovery Password API endpoint. This endpoint resets the password associated with an email and starts an intermediate session for the user.- Parameters:
parameters-callback-a callback that receives a B2BPasswordDiscoveryResetByEmailResponse
-
resetByEmailCompletable
abstract CompletableFuture<StytchResult<B2BPasswordDiscoveryResetByEmailResponseData>> resetByEmailCompletable(Passwords.Discovery.ResetByEmailParameters parameters)
The
resetByEmailmethod wraps the Reset By Email Discovery Password API endpoint. This endpoint resets the password associated with an email and starts an intermediate session for the user.- Parameters:
parameters-- Returns:
CompletableFuture<B2BPasswordDiscoveryResetByEmailResponse>
-
authenticate
abstract StytchResult<B2BPasswordDiscoveryAuthenticateResponseData> authenticate(Passwords.Discovery.AuthenticateParameters parameters)
The
authenticatemethod wraps the Discovery Authenticate Password API endpoint. This endpoint verifies that the email has a password currently set, and that the entered password is correct.- Parameters:
parameters-- Returns:
B2BPasswordDiscoveryAuthenticateResponse
-
authenticate
abstract Unit authenticate(Passwords.Discovery.AuthenticateParameters parameters, Function1<StytchResult<B2BPasswordDiscoveryAuthenticateResponseData>, Unit> callback)
The
authenticatemethod wraps the Discovery Authenticate Password API endpoint. This endpoint verifies that the email has a password currently set, and that the entered password is correct.- Parameters:
parameters-callback-a callback that receives a B2BPasswordDiscoveryAuthenticateResponse
-
authenticateCompletable
abstract CompletableFuture<StytchResult<B2BPasswordDiscoveryAuthenticateResponseData>> authenticateCompletable(Passwords.Discovery.AuthenticateParameters parameters)
The
authenticatemethod wraps the Discovery Authenticate Password API endpoint. This endpoint verifies that the email has a password currently set, and that the entered password is correct.- Parameters:
parameters-- Returns:
CompletableFuture<B2BPasswordDiscoveryAuthenticateResponse>
-
-
-
-