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 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 Create(string tokenVendorID, DateTime expirationDate, string supplierSerialNumber, string creationLotID, string pin, out TokenInfoCore tokenInfoCore) { OperationResult result; try { string typeName = new TokensValidatorDAO().DeployAssemblyNameByTokenParamsID(tokenVendorID); ITokens tokens = TokensFactory.LoadAssembly(typeName); result = tokens.Create(tokenVendorID, expirationDate, supplierSerialNumber, creationLotID, pin, out tokenInfoCore); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core.PREProcessorTokens::Create[]", innerException); } return result; }
public OperationResult Cancel(string tokenInternalID) { OperationResult result; try { string typeName = new TokensValidatorDAO().DeployAssemblyNameByTokenID(tokenInternalID); ITokens tokens = TokensFactory.LoadAssembly(typeName); result = tokens.Cancel(tokenInternalID); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core.PREProcessorTokens::Cancel[]", innerException); } return result; }
public AutenticationStatus Autenticate(string tokenInternalID, string password, string dataentropy, out string Challenge) { AutenticationStatus result; try { string typeName = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator tokenValidator = TokenValidatorFactory.LoadAssembly(typeName); result = tokenValidator.Autenticate(tokenInternalID, password, dataentropy, out Challenge); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core::Autenticate[]", innerException); } return(result); }
public OperationResult StartServerAuthentication(string tokenInternalID, string dataEntropy, out string newPwd) { OperationResult result; try { string typeName = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator tokenValidator = TokenValidatorFactory.LoadAssembly(typeName); result = tokenValidator.StartServerAuthentication(tokenInternalID, dataEntropy, out newPwd); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core::StartServerAuthentication[]", innerException); } return(result); }
public OperationResult Synchronize(string tokenInternalID, string firstPwd, string secondPwd) { OperationResult result; try { string typeName = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator tokenValidator = TokenValidatorFactory.LoadAssembly(typeName); result = tokenValidator.Synchronize(tokenInternalID, firstPwd, secondPwd); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core::Synchronize[]", innerException); } return(result); }
public OperationResult Cancel(string tokenInternalID) { OperationResult result; try { string typeName = new TokensValidatorDAO().DeployAssemblyNameByTokenID(tokenInternalID); ITokens tokens = TokensFactory.LoadAssembly(typeName); result = tokens.Cancel(tokenInternalID); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core.PREProcessorTokens::Cancel[]", innerException); } return(result); }
public OperationResult Create(string tokenVendorID, DateTime expirationDate, string supplierSerialNumber, string creationLotID, string pin, out TokenInfoCore tokenInfoCore) { OperationResult result; try { string typeName = new TokensValidatorDAO().DeployAssemblyNameByTokenParamsID(tokenVendorID); ITokens tokens = TokensFactory.LoadAssembly(typeName); result = tokens.Create(tokenVendorID, expirationDate, supplierSerialNumber, creationLotID, pin, out tokenInfoCore); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core.PREProcessorTokens::Create[]", innerException); } return(result); }
public OperationResult CheckStatus(string tokenInternalID, out TokenStatus tokenStatus) { OperationResult result; try { string typeName = new TokensValidatorDAO().DeployAssemblyNameByTokenID(tokenInternalID); ITokens tokens = TokensFactory.LoadAssembly(typeName); result = tokens.CheckStatus(tokenInternalID, out tokenStatus); } catch (Exception) { tokenStatus = TokenStatus.Undefined; 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 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 AutenticationStatus Autenticate(string tokenInternalID, string password, string dataentropy, out string Challenge) { AutenticationStatus result; try { string typeName = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator tokenValidator = TokenValidatorFactory.LoadAssembly(typeName); result = tokenValidator.Autenticate(tokenInternalID, password, dataentropy, out Challenge); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core::Autenticate[]", innerException); } return result; }
public OperationResult CheckStatus(string tokenInternalID, out TokenStatus tokenStatus) { OperationResult result; try { string typeName = new TokensValidatorDAO().DeployAssemblyNameByTokenID(tokenInternalID); ITokens tokens = TokensFactory.LoadAssembly(typeName); result = tokens.CheckStatus(tokenInternalID, out tokenStatus); } catch (Exception) { tokenStatus = TokenStatus.Undefined; result = OperationResult.Error; } return result; }
public OperationResult ChallengeRequest(string tokenInternalID, string dataEntropy, out string newChallange) { OperationResult result; try { string typeName = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator tokenValidator = TokenValidatorFactory.LoadAssembly(typeName); result = tokenValidator.ChallengeRequest(tokenInternalID, dataEntropy, out newChallange); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core::StartServerAuthentication[]", innerException); } 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 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 OperationResult Synchronize(string tokenInternalID, string firstPwd, string secondPwd) { OperationResult result; try { string typeName = new TokensValidatorDAO().ValidatorAssemblyNameByTokenID(tokenInternalID); ITokenValidator tokenValidator = TokenValidatorFactory.LoadAssembly(typeName); result = tokenValidator.Synchronize(tokenInternalID, firstPwd, secondPwd); } catch (Exception innerException) { throw new Exception("SF.Expand.SAF.Core::Synchronize[]", innerException); } return result; }