public abstract class AbstractAssetMatcher extends Object
Constructor and Description |
---|
AbstractAssetMatcher() |
Modifier and Type | Method and Description |
---|---|
static AbstractAssetMatcher |
createMatcher(String query)
Creates a new AssetMatcher from its JSON string representation.
|
abstract int |
getMatchedLookupKey()
This AssetMatcher will only match Asset with
lookupKey() equal to the value returned
by this method. |
abstract boolean |
matches(AbstractAsset asset)
Returns true if this AssetMatcher matches the asset.
|
public abstract boolean matches(AbstractAsset asset)
public abstract int getMatchedLookupKey()
lookupKey()
equal to the value returned
by this method.public static AbstractAssetMatcher createMatcher(String query) throws AssociationServiceException, JSONException
For web namespace, query
will match assets that have the same 'site' field.
For Android namespace, query
will match assets that have the same
'package_name' field and have at least one common certificate fingerprint in
'sha256_cert_fingerprints' field.