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 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); }