Interface Deregistration
- All Superinterfaces:
HttpOperation<Deregistration>
,Operation
The object that can be used to trigger a deregistration operation.
Usage example:
private void deregister(Operations operations, String username, String aaid, AuthorizationProvider authorizationProvider) { operations.deregistration() .username(username) .aaid(aaid) .authorizationProvider(authorizationProvider) .onError(error -> { // handle error }) .onSuccess(() -> { // handle success }) .execute(); }
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the AAID of theAuthenticator
that must be deregistered.authorizationProvider
(AuthorizationProvider authorizationProvider) Specifies the authorization provider that must be used to deregister the authenticator.onError
(Consumer<OperationError> errorConsumer) Specifies the object that will be invoked if the deregistration failed.Specifies the object that will be invoked if the authenticator was deleted successfully.Specifies the username whose authenticator must be deregistered.Methods inherited from interface ch.nevis.mobile.sdk.api.operation.HttpOperation
requestHeaders
-
Method Details
-
username
Specifies the username whose authenticator must be deregistered.Providing the username is required.
- Parameters:
username
- the username- Returns:
- a
Deregistration
-
aaid
Specifies the AAID of theAuthenticator
that must be deregistered. If no AAID is provided, then all the authenticators associated with the username will be deleted.- Parameters:
aaid
- the AAID of the authenticator (for instanceAuthenticator.PIN_AUTHENTICATOR_AAID
).- Returns:
- a
Deregistration
-
authorizationProvider
Specifies the authorization provider that must be used to deregister the authenticator. If noAuthorizationProvider
is given, then anAuthorizationProvider.EmptyAuthorizationProvider
will be used.This does not have to be provided on Authentication Cloud environment.
If the backend uses nevisFIDO 7.2402.** or later, use a
AuthorizationProvider.JwsAuthorizationProvider
to do deregistration without asking the user to authenticate.- Parameters:
authorizationProvider
- theAuthorizationProvider
- Returns:
- a
Deregistration
-
onError
Specifies the object that will be invoked if the deregistration failed. The specified object will receive anOperationError
. This object will be invoked in the main/UI thread.Providing the object handling the error is required.
- Parameters:
errorConsumer
- the consumer of anOperationError
- Returns:
- a
Deregistration
-
onSuccess
Specifies the object that will be invoked if the authenticator was deleted successfully. This object will be invoked in the main/UI thread.Providing the object handling the success is required.
- Parameters:
onSuccess
- the object invoked on successful deregistration.- Returns:
- a
Deregistration
-