All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.jdbc.mariadb.runtime.graal.SendPamAuthPacket_Substitutions Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
package io.quarkus.jdbc.mariadb.runtime.graal;

import java.io.IOException;
import java.sql.SQLException;

import org.mariadb.jdbc.Configuration;
import org.mariadb.jdbc.client.Context;
import org.mariadb.jdbc.client.ReadableByteBuf;
import org.mariadb.jdbc.client.socket.Reader;
import org.mariadb.jdbc.client.socket.Writer;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(className = "org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket")
public final class SendPamAuthPacket_Substitutions {

    @Substitute
    public void initialize(String authenticationData, byte[] seed, Configuration conf) {
        throw new UnsupportedOperationException("Authentication strategy 'dialog' is not supported in GraalVM");
    }

    @Substitute
    public ReadableByteBuf process(Writer out, Reader in, Context context)
            throws SQLException, IOException {
        throw new UnsupportedOperationException("Authentication strategy 'dialog' is not supported in GraalVM");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy