Interface AuthenticationPlugin

    • Method Detail

      • process

        ReadableByteBuf process​(Writer encoder,
                                Reader decoder,
                                Context context,
                                boolean sslFingerPrintValidation)
                         throws java.io.IOException,
                                java.sql.SQLException
        Process plugin authentication.
        Parameters:
        encoder - out stream
        decoder - in stream
        context - connection context
        sslFingerPrintValidation - true if SSL certificate fingerprint validation is enabled
        Returns:
        response packet
        Throws:
        java.io.IOException - if socket error
        java.sql.SQLException - if plugin exception
      • isMitMProof

        default boolean isMitMProof()
        Can plugins are MitM-proof, permitting returning HASH
        Returns:
        true if permitted
      • hash

        default byte[] hash​(Credential credential)
        Return Hash
        Parameters:
        credential - credential
        Returns:
        hash