CertBlacklisterpublic class CertBlacklister extends android.os.Binder CertBlacklister provides a simple mechanism for updating the platform blacklists for SSL
certificate public keys and serial numbers. |
Fields Summary |
---|
private static final String | TAG | private static final String | BLACKLIST_ROOT | public static final String | PUBKEY_PATH | public static final String | SERIAL_PATH | public static final String | PUBKEY_BLACKLIST_KEY | public static final String | SERIAL_BLACKLIST_KEY |
Constructors Summary |
---|
public CertBlacklister(android.content.Context context)
registerObservers(context.getContentResolver());
|
Methods Summary |
---|
private com.android.server.CertBlacklister$BlacklistObserver | buildPubkeyObserver(android.content.ContentResolver cr)
return new BlacklistObserver(PUBKEY_BLACKLIST_KEY,
"pubkey",
PUBKEY_PATH,
cr);
| private com.android.server.CertBlacklister$BlacklistObserver | buildSerialObserver(android.content.ContentResolver cr)
return new BlacklistObserver(SERIAL_BLACKLIST_KEY,
"serial",
SERIAL_PATH,
cr);
| private void | registerObservers(android.content.ContentResolver cr)
// set up the public key blacklist observer
cr.registerContentObserver(
Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY),
true,
buildPubkeyObserver(cr)
);
// set up the serial number blacklist observer
cr.registerContentObserver(
Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
true,
buildSerialObserver(cr)
);
|
|