FileDocCategorySizeDatePackage
VerifierInfo.javaAPI DocAndroid 5.1 API2686Thu Mar 12 22:22:10 GMT 2015android.content.pm

VerifierInfo

public class VerifierInfo extends Object implements android.os.Parcelable
Contains information about a package verifier as used by {@code PackageManagerService} during package verification.
hide

Fields Summary
public final String
packageName
Package name of the verifier.
public final PublicKey
publicKey
Signatures used to sign the package verifier's package.
public static final Parcelable.Creator
CREATOR
Constructors Summary
public VerifierInfo(String packageName, PublicKey publicKey)
Creates an object that represents a verifier info object.

param
packageName the package name in Java-style. Must not be {@code null} or empty.
param
publicKey the public key for the signer encoded in Base64. Must not be {@code null} or empty.
throws
IllegalArgumentException if either argument is null or empty.

        if (packageName == null || packageName.length() == 0) {
            throw new IllegalArgumentException("packageName must not be null or empty");
        } else if (publicKey == null) {
            throw new IllegalArgumentException("publicKey must not be null");
        }

        this.packageName = packageName;
        this.publicKey = publicKey;
    
private VerifierInfo(android.os.Parcel source)

        packageName = source.readString();
        publicKey = (PublicKey) source.readSerializable();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeString(packageName);
        dest.writeSerializable(publicKey);