package com.google.crypto.tink;

import defpackage.n41;
import java.security.GeneralSecurityException;

/* JADX INFO: loaded from: classes2.dex */
public final class KeyTemplates {
    private KeyTemplates() {
    }

    public static KeyTemplate get(String str) throws GeneralSecurityException {
        KeyTemplate keyTemplate = Registry.keyTemplateMap().get(str);
        if (keyTemplate != null) {
            return keyTemplate;
        }
        throw new GeneralSecurityException(n41.n("cannot find key template: ", str));
    }
}
