public interface CustomActivationProvider
| Modifier and Type | Method and Description |
|---|---|
default void |
activationWasCommitted(Map<String,String> identityAttributes,
Map<String,Object> customAttributes,
String activationId,
String userId,
ActivationType activationType)
Method is called when activation commit succeeds.
|
default void |
activationWasRemoved(String activationId,
String userId)
Method is called after activation was just removed using the standard removal endpoint.
|
default Integer |
getMaxFailedAttemptCount(Map<String,String> identityAttributes,
Map<String,Object> customAttributes,
String userId,
ActivationType activationType)
Get maximum failed attempt count for activations.
|
default Integer |
getValidityPeriodDuringActivation(Map<String,String> identityAttributes,
Map<String,Object> customAttributes,
String userId,
ActivationType activationType)
Get length of the period of activation record validity during activation in milliseconds.
|
String |
lookupUserIdForAttributes(Map<String,String> identityAttributes)
This method is responsible for looking user ID up based on a provided set of identity attributes.
|
default Map<String,Object> |
processCustomActivationAttributes(Map<String,Object> customAttributes,
String activationId,
String userId,
ActivationType activationType)
Process custom attributes, in any way that is suitable for the purpose of your application.
|
default boolean |
shouldAutoCommitActivation(Map<String,String> identityAttributes,
Map<String,Object> customAttributes,
String activationId,
String userId,
ActivationType activationType)
Variable that specifies if the activation should be automatically committed based on provided attributes.
|
String lookupUserIdForAttributes(Map<String,String> identityAttributes) throws PowerAuthActivationException
identityAttributes - Attributes that uniquely identify user with given ID.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.default Map<String,Object> processCustomActivationAttributes(Map<String,Object> customAttributes, String activationId, String userId, ActivationType activationType) throws PowerAuthActivationException
customAttributes - Custom attributes (not related to identity) to be processed.activationId - Activation ID of created activation.userId - User ID of user who created the activation.activationType - Activation type.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.default boolean shouldAutoCommitActivation(Map<String,String> identityAttributes, Map<String,Object> customAttributes, String activationId, String userId, ActivationType activationType) throws PowerAuthActivationException
identityAttributes - Identity related attributes.customAttributes - Custom attributes, not related to identity.activationId - Activation ID of created activation.userId - User ID of user who created the activation.activationType - Activation type.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.default void activationWasCommitted(Map<String,String> identityAttributes, Map<String,Object> customAttributes, String activationId, String userId, ActivationType activationType) throws PowerAuthActivationException
identityAttributes - Identity related attributes.customAttributes - Custom attributes, not related to identity.activationId - Activation ID of created activation.userId - User ID of user who created the activation.activationType - Activation type.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.default void activationWasRemoved(String activationId, String userId) throws PowerAuthActivationException
activationId - Activation ID of created activation.userId - User ID of user who created the activation.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.default Integer getMaxFailedAttemptCount(Map<String,String> identityAttributes, Map<String,Object> customAttributes, String userId, ActivationType activationType) throws PowerAuthActivationException
identityAttributes - Identity related attributes.customAttributes - Custom attributes, not related to identity.userId - User ID of user who created the activation.activationType - Activation type.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.default Integer getValidityPeriodDuringActivation(Map<String,String> identityAttributes, Map<String,Object> customAttributes, String userId, ActivationType activationType) throws PowerAuthActivationException
identityAttributes - Identity related attributes.customAttributes - Custom attributes, not related to identity.userId - User ID of user who created the activation.activationType - Activation type.PowerAuthActivationException - In case of error in custom activation business logic that should terminate the rest of the activation.Copyright © 2017–2020 Wultra s.r.o.. All rights reserved.