package org.bouncycastle.crypto.constraints;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class DefaultServiceProperties implements org.bouncycastle.crypto.CryptoServiceProperties {
    private final java.lang.String a;
    private final int b;
    private final java.lang.Object c;
    private final org.bouncycastle.crypto.CryptoServicePurpose d;

    public DefaultServiceProperties(java.lang.String str, int i) {
        this(str, i, null, org.bouncycastle.crypto.CryptoServicePurpose.ANY);
    }

    @Override // org.bouncycastle.crypto.CryptoServiceProperties
    public int bitsOfSecurity() {
        return this.b;
    }

    @Override // org.bouncycastle.crypto.CryptoServiceProperties
    public org.bouncycastle.crypto.CryptoServicePurpose getPurpose() {
        return this.d;
    }

    @Override // org.bouncycastle.crypto.CryptoServiceProperties
    public java.lang.String getServiceName() {
        return this.a;
    }

    public DefaultServiceProperties(java.lang.String str, int i, java.lang.Object obj, org.bouncycastle.crypto.CryptoServicePurpose cryptoServicePurpose) {
        this.a = str;
        this.b = i;
        this.c = obj;
        if (obj instanceof org.bouncycastle.crypto.CryptoServicePurpose) {
            throw new java.lang.IllegalArgumentException("params should not be CryptoServicePurpose");
        }
        this.d = cryptoServicePurpose;
    }
}
