public TokenTypeBaseParams(int hotpTotalDigits, int hotpOffSet, int hotpValidationWindow, long hotpMovingFactorDrift, TokenSeedType tokenSeedType, TokenMovingFactorType tokenMovingFactorType, long hotpValidationWindow4Sync, string tokenTypeBaseParamsID, int challengeRequestValidUntil)
 {
     this._TokenTypeBaseParamsID           = tokenTypeBaseParamsID;
     this._hotpTotalDigits                 = hotpTotalDigits;
     this._hotpOffSet                      = hotpOffSet;
     this._hotpValidationWindow            = hotpValidationWindow;
     this._hotpMovingFactorDrift           = hotpMovingFactorDrift;
     this._tokenSeedType                   = tokenSeedType;
     this._tokenMovingFactorType           = tokenMovingFactorType;
     this._hotpValidationWindow4Sync       = hotpValidationWindow4Sync;
     this._tokenChallengeRequestValidUntil = challengeRequestValidUntil;
 }
		public TokenTypeBaseParams(int hotpTotalDigits, int hotpOffSet, int hotpValidationWindow, long hotpMovingFactorDrift, TokenSeedType tokenSeedType, TokenMovingFactorType tokenMovingFactorType, long hotpValidationWindow4Sync, string tokenTypeBaseParamsID, int challengeRequestValidUntil)
		{
			this._TokenTypeBaseParamsID = tokenTypeBaseParamsID;
			this._hotpTotalDigits = hotpTotalDigits;
			this._hotpOffSet = hotpOffSet;
			this._hotpValidationWindow = hotpValidationWindow;
			this._hotpMovingFactorDrift = hotpMovingFactorDrift;
			this._tokenSeedType = tokenSeedType;
			this._tokenMovingFactorType = tokenMovingFactorType;
			this._hotpValidationWindow4Sync = hotpValidationWindow4Sync;
			this._tokenChallengeRequestValidUntil = challengeRequestValidUntil;
		}
Ejemplo n.º 3
0
		public OperationResult AfterChallengeRequest(string applicationUser, string tokenID, string baseNotifyMessage, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
		{
			return OperationResult.Success;
		}
Ejemplo n.º 4
0
		public AutenticationStatus AfterAutenticate(string applicationUser, string tokenID, string baseNotifyMessage, bool onLoopValidation, string newChallenge, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
		{
			return AutenticationStatus.Success;
		}
Ejemplo n.º 5
0
		public OperationResult AfterSynchronize(string applicationUser, string tokenID, string baseNotifyMessage, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
		{
			return OperationResult.Success;
		}
Ejemplo n.º 6
0
		public OperationResult AfterStartServerAuthentication(string applicationUser, string tokenID, string baseNotifyMessage, string newPassword, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
		{
			return OperationResult.Success;
		}
Ejemplo n.º 7
0
 public OperationResult AfterChallengeRequest(string applicationUser, string tokenID, string baseNotifyMessage, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
 {
     return(OperationResult.Success);
 }
Ejemplo n.º 8
0
 public AutenticationStatus AfterAutenticate(string applicationUser, string tokenID, string baseNotifyMessage, bool onLoopValidation, string newChallenge, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
 {
     return(AutenticationStatus.Success);
 }
Ejemplo n.º 9
0
 public OperationResult AfterSynchronize(string applicationUser, string tokenID, string baseNotifyMessage, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
 {
     return(OperationResult.Success);
 }
Ejemplo n.º 10
0
 public OperationResult AfterStartServerAuthentication(string applicationUser, string tokenID, string baseNotifyMessage, string newPassword, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
 {
     return(OperationResult.Success);
 }
Ejemplo n.º 11
0
        public OperationResult AfterStartServerAuthentication(string applicationUser, string tokenID, string baseNotifyMessage, string newPassword, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
        {
            string[] _arrayNotifMsg = (baseNotifyMessage ?? "").Split(new char[]
            {
                '|'
            });
            string[] _params = new string[_arrayNotifMsg.Length - 1];
            Array.Copy(_arrayNotifMsg, 1, _params, 0, _params.Length);
            string notifMsg = ((_arrayNotifMsg[0] ?? "").Length > 1) ? _arrayNotifMsg[0] : SAFConfiguration.readParameterExternal("SMS.TEMPLATE.ON.STARTSERVERAUTH");

            notifMsg = string.Format(notifMsg.Replace("{tm}", DateTime.Now.ToShortDateString()).Replace("{dt}", DateTime.Now.ToShortTimeString()), _params);
            return(SMSSender.Send(applicationUser, tokenID, null, notifMsg));
        }
Ejemplo n.º 12
0
		public OperationResult AfterStartServerAuthentication(string applicationUser, string tokenID, string baseNotifyMessage, string newPassword, TokenMovingFactorType tokenMovingFactorType, TokenSeedType tokenSeedType)
		{
			string[] _arrayNotifMsg = (baseNotifyMessage ?? "").Split(new char[]
			{
				'|'
			});
			string[] _params = new string[_arrayNotifMsg.Length - 1];
			Array.Copy(_arrayNotifMsg, 1, _params, 0, _params.Length);
			string notifMsg = ((_arrayNotifMsg[0] ?? "").Length > 1) ? _arrayNotifMsg[0] : SAFConfiguration.readParameterExternal("SMS.TEMPLATE.ON.STARTSERVERAUTH");
			notifMsg = string.Format(notifMsg.Replace("{tm}", DateTime.Now.ToShortDateString()).Replace("{dt}", DateTime.Now.ToShortTimeString()), _params);
			return SMSSender.Send(applicationUser, tokenID, null, notifMsg);
		}