FileDocCategorySizeDatePackage
CertBlacklister.javaAPI DocAndroid 5.1 API5102Thu Mar 12 22:22:42 GMT 2015com.android.server

CertBlacklister

public 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$BlacklistObserverbuildPubkeyObserver(android.content.ContentResolver cr)

        return new BlacklistObserver(PUBKEY_BLACKLIST_KEY,
                    "pubkey",
                    PUBKEY_PATH,
                    cr);
    
private com.android.server.CertBlacklister$BlacklistObserverbuildSerialObserver(android.content.ContentResolver cr)

        return new BlacklistObserver(SERIAL_BLACKLIST_KEY,
                    "serial",
                    SERIAL_PATH,
                    cr);
    
private voidregisterObservers(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)
        );