Class SMSCredentialResetImpl
- java.lang.Object
-
- pl.edu.icm.unity.stdext.credential.CredentialResetBase
-
- pl.edu.icm.unity.stdext.credential.sms.SMSCredentialResetImpl
-
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.authn.CredentialReset
public class SMSCredentialResetImpl extends CredentialResetBase
SMS reset implementation ofCredentialReset. This implementation is stateful, i.e. from creation it must be used exclusively by a single reset procedure.- Author:
- P. Piernik
-
-
Field Summary
-
Fields inherited from class pl.edu.icm.unity.stdext.credential.CredentialResetBase
DEFAULT_MAX_CODE_VALIDITY, MAX_ANSWER_ATTEMPTS, resolved
-
-
Constructor Summary
Constructors Constructor Description SMSCredentialResetImpl(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, SMSCredentialRecoverySettings settings)SMSCredentialResetImpl(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, SMSCredentialRecoverySettings settings, Duration maxCodeValidity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetCodeLength()protected StringgetCredentialSettings()voidsetSubject(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject subject)-
Methods inherited from class pl.edu.icm.unity.stdext.credential.CredentialResetBase
checkSubject, getCredentialConfiguration, getEntityId, getRequestedSubject, getSecurityQuestion, getSentCode, getSettings, sendCode, setSubject, updateCredential, verifyDynamicData, verifyStaticData
-
-
-
-
Constructor Detail
-
SMSCredentialResetImpl
public SMSCredentialResetImpl(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, SMSCredentialRecoverySettings settings, Duration maxCodeValidity)
-
SMSCredentialResetImpl
public SMSCredentialResetImpl(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, SMSCredentialRecoverySettings settings)
-
-
Method Detail
-
getCredentialSettings
protected String getCredentialSettings()
- Specified by:
getCredentialSettingsin classCredentialResetBase
-
getCodeLength
protected int getCodeLength()
- Specified by:
getCodeLengthin classCredentialResetBase
-
setSubject
public void setSubject(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject subject)
-
-