-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from IABTechLab/aaq-UID2-3335-app-domain-name-…
…check-bidstream Support Domain or App name check in bidstream client
- Loading branch information
Showing
10 changed files
with
353 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.uid2.client; | ||
|
||
import java.util.Set; | ||
|
||
public class Site { | ||
private final int id; | ||
|
||
private final Set<String> domainOrAppNames; | ||
|
||
public int getId() { return id;} | ||
|
||
public Site(int id, Set<String> domainOrAppNames) { | ||
this.id = id; | ||
this.domainOrAppNames = domainOrAppNames; | ||
} | ||
|
||
public boolean allowDomainOrAppName(String domainOrAppName) { | ||
// Using streams because HashSet's contains() is case sensitive | ||
return domainOrAppNames.stream().anyMatch(domainOrAppName::equalsIgnoreCase); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.