getVisitor() public method

public getVisitor ( string securityToken, string encryptionKey ) : Visitor
securityToken string
encryptionKey string
return Visitor
Esempio n. 1
0
 public IPrincipal getUserPrincipal(string key)
 {
     MdwsConfiguration conf = new mdws.conf.MdwsConfiguration();
     string connectionString = conf.BseValidatorConnectionString;
     string encryptionKey =
         conf.AllConfigs[MdwsConfigConstants.MDWS_CONFIG_SECTION][MdwsConfigConstants.BSE_SQL_ENCRYPTION_KEY];
     IDao dao = new UserValidationDao(connectionString);
     return dao.getVisitor(key, encryptionKey).Principal;
 }
        public IPrincipal getUserPrincipal(string key)
        {
            MdwsConfiguration conf             = new mdws.conf.MdwsConfiguration();
            string            connectionString = conf.BseValidatorConnectionString;
            string            encryptionKey    =
                conf.AllConfigs[MdwsConfigConstants.MDWS_CONFIG_SECTION][MdwsConfigConstants.BSE_SQL_ENCRYPTION_KEY];
            IDao dao = new UserValidationDao(connectionString);

            return(dao.getVisitor(key, encryptionKey).Principal);
        }