public abstract class ProvisioningProfileMetadata extends Object implements AddsToRuleKey
Modifier and Type | Class and Description |
---|---|
static class |
ProvisioningProfileMetadata.Builder |
Constructor and Description |
---|
ProvisioningProfileMetadata() |
Modifier and Type | Method and Description |
---|---|
static ProvisioningProfileMetadata.Builder |
builder() |
abstract Pair<String,String> |
getAppID()
Returns a (prefix, identifier) pair for which the profile is valid.
|
abstract com.google.common.collect.ImmutableSet<com.google.common.hash.HashCode> |
getDeveloperCertificateFingerprints()
SHA1 hashes of the certificates in the "DeveloperCertificates" section.
|
abstract com.google.common.collect.ImmutableMap<String,com.dd.plist.NSObject> |
getEntitlements()
Key/value pairs of the "Entitlements" dictionary in the embedded plist.
|
abstract Date |
getExpirationDate() |
com.google.common.collect.ImmutableMap<String,com.dd.plist.NSObject> |
getMergeableEntitlements() |
com.google.common.collect.ImmutableList<String> |
getPlatforms()
The set of platforms the profile is valid for.
|
abstract Path |
getProfilePath() |
abstract String |
getUUID() |
static Optional<String> |
prefixFromEntitlements(com.google.common.collect.ImmutableMap<String,com.dd.plist.NSObject> entitlements)
Takes an ImmutableMap representing an entitlements file, returns the application prefix if it
can be inferred from keys in the entitlement.
|
static Pair<String,String> |
splitAppID(String appID)
Takes a application identifier and splits it into prefix and bundle ID.
|
public abstract Pair<String,String> getAppID()
e.g. (ABCDE12345, com.example.TestApp) or (ABCDE12345, *)
public abstract Date getExpirationDate()
public abstract String getUUID()
public abstract Path getProfilePath()
@Value.Default public com.google.common.collect.ImmutableList<String> getPlatforms()
public abstract com.google.common.collect.ImmutableMap<String,com.dd.plist.NSObject> getEntitlements()
public abstract com.google.common.collect.ImmutableSet<com.google.common.hash.HashCode> getDeveloperCertificateFingerprints()
public static Pair<String,String> splitAppID(String appID)
Prefix is always a ten-character alphanumeric sequence. Bundle ID may be a fully-qualified name or a wildcard ending in *.
public static Optional<String> prefixFromEntitlements(com.google.common.collect.ImmutableMap<String,com.dd.plist.NSObject> entitlements)
public com.google.common.collect.ImmutableMap<String,com.dd.plist.NSObject> getMergeableEntitlements()
public static ProvisioningProfileMetadata.Builder builder()