Class PasswordCredentialResetImpl

  • All Implemented Interfaces:
    pl.edu.icm.unity.engine.api.authn.CredentialReset

    public class PasswordCredentialResetImpl
    extends CredentialResetBase
    Password reset implementation of CredentialReset. This implementation is stateful, i.e. from creation it must be used exclusively by a single reset procedure.
    Author:
    K. Benedyczak
    • Constructor Detail

      • PasswordCredentialResetImpl

        public PasswordCredentialResetImpl​(pl.edu.icm.unity.engine.api.notification.NotificationProducer notificationProducer,
                                           pl.edu.icm.unity.engine.api.identity.IdentityResolver identityResolver,
                                           pl.edu.icm.unity.engine.api.authn.local.LocalCredentialVerificator localVerificator,
                                           pl.edu.icm.unity.engine.api.authn.local.CredentialHelper credentialHelper,
                                           java.lang.String credentialId,
                                           com.fasterxml.jackson.databind.node.ObjectNode completeCredentialConfiguration,
                                           PasswordCredentialResetSettings settings,
                                           PasswordEngine passwordEngine)
    • Method Detail

      • getSecurityQuestion

        public java.lang.String getSecurityQuestion()
        Specified by:
        getSecurityQuestion in interface pl.edu.icm.unity.engine.api.authn.CredentialReset
        Overrides:
        getSecurityQuestion in class CredentialResetBase
      • verifyStaticData

        public void verifyStaticData​(java.lang.String answer)
                              throws pl.edu.icm.unity.exceptions.WrongArgumentException,
                                     pl.edu.icm.unity.exceptions.IllegalIdentityValueException,
                                     pl.edu.icm.unity.exceptions.TooManyAttempts
        Specified by:
        verifyStaticData in interface pl.edu.icm.unity.engine.api.authn.CredentialReset
        Overrides:
        verifyStaticData in class CredentialResetBase
        Throws:
        pl.edu.icm.unity.exceptions.WrongArgumentException
        pl.edu.icm.unity.exceptions.IllegalIdentityValueException
        pl.edu.icm.unity.exceptions.TooManyAttempts
      • setSubject

        public void setSubject​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject subject)