Class PasswordCredentialResetImpl

java.lang.Object
pl.edu.icm.unity.stdext.credential.CredentialResetBase
pl.edu.icm.unity.stdext.credential.pass.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 Details

    • 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, String credentialId, com.fasterxml.jackson.databind.node.ObjectNode completeCredentialConfiguration, PasswordCredentialResetSettings settings, PasswordEngine passwordEngine, Duration maxCodeValidity)
    • 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, String credentialId, com.fasterxml.jackson.databind.node.ObjectNode completeCredentialConfiguration, PasswordCredentialResetSettings settings, PasswordEngine passwordEngine)
  • Method Details

    • getCredentialSettings

      protected String getCredentialSettings()
      Specified by:
      getCredentialSettings in class CredentialResetBase
    • getCodeLength

      protected int getCodeLength()
      Specified by:
      getCodeLength in class CredentialResetBase
    • getSecurityQuestion

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

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

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