public OperationResult InhibitedUse(string tokenInternalID) { OperationResult result; try { string assemb = new TokensValidatorDAO().DeployAssemblyNameByTokenID(tokenInternalID); ITokens _tokens = TokensFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokens]::" + assemb.Trim(), "Invalid or null typename!" }); result = OperationResult.Error; } else { result = _tokens.InhibitedUse(tokenInternalID); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); result = OperationResult.Error; } return(result); }
public OperationResult UndoCreate(string tokenInternalID) { OperationResult result; try { string assemb = new TokensValidatorDAO().DeployAssemblyNameByTokenID(tokenInternalID); ITokens _tokens = TokensFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokens]::" + assemb.Trim(), "Invalid or null typename!" }); result = OperationResult.Error; } else { result = _tokens.UndoCreate(tokenInternalID); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); result = OperationResult.Error; } return result; }
public OperationResult Create(string tokenVendorID, DateTime expirationDate, string supplierSerialNumber, string creationLotID, string pin, out TokenInfoCore tokenInfoCore) { tokenInfoCore = new TokenInfoCore(); OperationResult result; try { string assemb = new TokensValidatorDAO().DeployAssemblyNameByTokenParamsID(tokenVendorID); ITokens _tokens = TokensFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokens]::" + assemb.Trim(), "Invalid or null typename!" }); tokenInfoCore = new TokenInfoCore(); result = OperationResult.Error; } else { result = _tokens.Create(tokenVendorID, expirationDate, supplierSerialNumber, creationLotID, pin, out tokenInfoCore); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); tokenInfoCore = new TokenInfoCore(); result = OperationResult.Error; } return(result); }
public OperationResult StartServerAuthentication(string tokenInternalID, long movingFactorDrift, string dataEntropy, out string newPwd) { OperationResult result; try { string assemb = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator _tokens = TokenValidatorFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokenValidator]::" + assemb.Trim(), "Invalid or null typename!" }); newPwd = null; result = OperationResult.Error; } else { result = _tokens.StartServerAuthentication(tokenInternalID, movingFactorDrift, dataEntropy, out newPwd); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); newPwd = null; result = OperationResult.Error; } return(result); }
public AutenticationStatus Autenticate(string tokenInternalID, string password, string dataentropy, out string Challenge) { AutenticationStatus result; try { string assemb = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator _tokens = TokenValidatorFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokenValidator]::" + assemb.Trim(), "Invalid or null typename!" }); Challenge = null; result = AutenticationStatus.AutenticationProcessFail; } else { result = _tokens.Autenticate(tokenInternalID, password, dataentropy, out Challenge); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); Challenge = null; result = AutenticationStatus.AutenticationProcessFail; } return(result); }
public OperationResult Create(string tokenVendorID, DateTime expirationDate, string supplierSerialNumber, string creationLotID, string pin, out TokenInfoCore tokenInfoCore) { tokenInfoCore = new TokenInfoCore(); OperationResult result; try { string assemb = new TokensValidatorDAO().DeployAssemblyNameByTokenParamsID(tokenVendorID); ITokens _tokens = TokensFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokens]::" + assemb.Trim(), "Invalid or null typename!" }); tokenInfoCore = new TokenInfoCore(); result = OperationResult.Error; } else { result = _tokens.Create(tokenVendorID, expirationDate, supplierSerialNumber, creationLotID, pin, out tokenInfoCore); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); tokenInfoCore = new TokenInfoCore(); result = OperationResult.Error; } return result; }
public OperationResult StartServerAuthentication(string tokenInternalID, long movingFactorDrift, string dataEntropy, out string newPwd) { OperationResult result; try { string assemb = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator _tokens = TokenValidatorFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokenValidator]::" + assemb.Trim(), "Invalid or null typename!" }); newPwd = null; result = OperationResult.Error; } else { result = _tokens.StartServerAuthentication(tokenInternalID, movingFactorDrift, dataEntropy, out newPwd); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); newPwd = null; result = OperationResult.Error; } return result; }
public AutenticationStatus Autenticate(string tokenInternalID, string password, string dataentropy, out string Challenge) { AutenticationStatus result; try { string assemb = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator _tokens = TokenValidatorFactory.LoadAssembly(assemb); if (_tokens == null) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.ERROR, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", "[ITokenValidator]::" + assemb.Trim(), "Invalid or null typename!" }); Challenge = null; result = AutenticationStatus.AutenticationProcessFail; } else { result = _tokens.Autenticate(tokenInternalID, password, dataentropy, out Challenge); } } catch (Exception ex) { SAFLOGGER.Write(SAFLOGGER.LOGGEREventID.EXCEPTION, "SAFCORE", new string[] { "http://sfexpand.SAFCore.PREProcessorTokens.softfinanca.com/", Assembly.GetExecutingAssembly().FullName.ToString(), ex.ToString() }); Challenge = null; result = AutenticationStatus.AutenticationProcessFail; } return result; }