package org.bouncycastle.crypto;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class CryptoServicesPermission extends java.security.Permission {
    private final java.util.Set a;

    public CryptoServicesPermission(java.lang.String str) {
        super(str);
        java.util.HashSet hashSet = new java.util.HashSet();
        this.a = hashSet;
        hashSet.add(str);
    }

    public boolean equals(java.lang.Object obj) {
        return (obj instanceof org.bouncycastle.crypto.CryptoServicesPermission) && this.a.equals(((org.bouncycastle.crypto.CryptoServicesPermission) obj).a);
    }

    @Override // java.security.Permission
    public java.lang.String getActions() {
        return this.a.toString();
    }

    public int hashCode() {
        return this.a.hashCode();
    }

    @Override // java.security.Permission
    public boolean implies(java.security.Permission permission) {
        if (!(permission instanceof org.bouncycastle.crypto.CryptoServicesPermission)) {
            return false;
        }
        org.bouncycastle.crypto.CryptoServicesPermission cryptoServicesPermission = (org.bouncycastle.crypto.CryptoServicesPermission) permission;
        return getName().equals(cryptoServicesPermission.getName()) || this.a.containsAll(cryptoServicesPermission.a);
    }
}
