/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.hibernate.HibernateException
 *  org.hibernate.Session
 *  org.springframework.orm.hibernate5.HibernateCallback
 */
package com.l7tech.server.security.sharedkey;

import com.l7tech.server.security.sharedkey.SharedKeyManagerImpl;
import com.l7tech.server.security.sharedkey.SharedKeyRecord;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate5.HibernateCallback;

class c
implements HibernateCallback<Void> {
    final SharedKeyRecord val$sharedKeyToSave;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    c(SharedKeyManagerImpl sharedKeyManagerImpl, SharedKeyRecord sharedKeyRecord) {
        this.val$sharedKeyToSave = sharedKeyRecord;
    }

    public Void doInHibernate(Session session) throws HibernateException {
        session.save((Object)this.val$sharedKeyToSave);
        session.flush();
        return null;
    }
}

