android.content.pm.KeySet源码实例Demo

类android.content.pm.KeySet源码实例Demo

下面列出了android.content.pm.KeySet 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    try {
        return mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    try {
        return mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    try {
        return mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    try {
        return mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    KeySet ks;
    try {
        ks = mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        return null;
    }
    return ks;
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    KeySet ks;
    try {
        ks = mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        return null;
    }
    return ks;
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        return false;
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        return false;
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    try {
        return mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    try {
        return mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    try {
        return mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    try {
        return mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    KeySet ks;
    try {
        ks = mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        return null;
    }
    return ks;
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    KeySet ks;
    try {
        ks = mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        return null;
    }
    return ks;
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        return false;
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        return false;
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    try {
        return mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    try {
        return mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedBy(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySet(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public boolean isSignedByExactly(String packageName, KeySet ks) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(ks);
    try {
        return mPM.isPackageSignedByKeySetExactly(packageName, ks);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getKeySetByAlias(String packageName, String alias) {
    Preconditions.checkNotNull(packageName);
    Preconditions.checkNotNull(alias);
    try {
        return mPM.getKeySetByAlias(packageName, alias);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
/** @hide */
@Override
public KeySet getSigningKeySet(String packageName) {
    Preconditions.checkNotNull(packageName);
    try {
        return mPM.getSigningKeySet(packageName);
    } catch (RemoteException e) {
        throw e.rethrowFromSystemServer();
    }
}
 
如果文章对您有帮助,请点击页面广告。以鼓励作者做出的努力。
 类所在包
 同包方法