@@ -101,7 +101,7 @@ private static DecryptionResponse DecryptV2(byte[] encryptedId, KeyContainer key
101
101
return new DecryptionResponse ( DecryptionStatus . UserOptedOut , null , established , siteId , siteKey . SiteId , null , 2 , privacyBits . IsClientSideGenerated ) ;
102
102
}
103
103
104
- if ( ! IsValidDomainNameForSite ( privacyBits , siteId , domainName , keys ) )
104
+ if ( ! IsDomainNameAllowedForSite ( privacyBits , siteId , domainName , keys ) )
105
105
{
106
106
return new DecryptionResponse ( DecryptionStatus . DomainNameCheckFailed , null , established , siteId , siteKey . SiteId , null , 2 , privacyBits . IsClientSideGenerated ) ;
107
107
}
@@ -178,7 +178,7 @@ private static DecryptionResponse DecryptV3(byte[] encryptedId, KeyContainer key
178
178
return new DecryptionResponse ( DecryptionStatus . UserOptedOut , null , established , siteId , siteKey . SiteId , identityType , advertisingTokenVersion , privacyBits . IsClientSideGenerated ) ;
179
179
}
180
180
181
- if ( ! IsValidDomainNameForSite ( privacyBits , siteId , domainName , keys ) )
181
+ if ( ! IsDomainNameAllowedForSite ( privacyBits , siteId , domainName , keys ) )
182
182
{
183
183
return new DecryptionResponse ( DecryptionStatus . DomainNameCheckFailed , null , established , siteId , siteKey . SiteId , identityType , advertisingTokenVersion ,
184
184
privacyBits . IsClientSideGenerated ) ;
@@ -187,14 +187,14 @@ private static DecryptionResponse DecryptV3(byte[] encryptedId, KeyContainer key
187
187
return new DecryptionResponse ( DecryptionStatus . Success , idString , established , siteId , siteKey . SiteId , identityType , advertisingTokenVersion , privacyBits . IsClientSideGenerated ) ;
188
188
}
189
189
190
- private static bool IsValidDomainNameForSite ( PrivacyBits privacyBits , int siteId , string domainName , KeyContainer keys )
190
+ private static bool IsDomainNameAllowedForSite ( PrivacyBits privacyBits , int siteId , string domainName , KeyContainer keys )
191
191
{
192
192
if ( ! privacyBits . IsClientSideGenerated )
193
193
{
194
194
return true ;
195
195
}
196
196
197
- return keys . IsDomainNameForSite ( siteId , domainName ) ;
197
+ return keys . IsDomainNameAllowedForSite ( siteId , domainName ) ;
198
198
}
199
199
200
200
internal static EncryptionDataResponse Encrypt ( string rawUid , KeyContainer keys , IdentityScope identityScope ,
0 commit comments