Class Ed25519PasswordPlugin

    • Constructor Detail

      • Ed25519PasswordPlugin

        public Ed25519PasswordPlugin()
    • Method Detail

      • initialize

        public void initialize​(String authenticationData,
                               byte[] seed,
                               Configuration conf,
                               HostAddress hostAddress)
        Initialization.
        Specified by:
        initialize in interface AuthenticationPlugin
        Parameters:
        authenticationData - authentication data (password/token)
        seed - server provided seed
        conf - Connection string options
        hostAddress - host information
      • process

        public org.mariadb.jdbc.client.ReadableByteBuf process​(Writer out,
                                                               Reader in,
                                                               org.mariadb.jdbc.client.Context context)
                                                        throws SQLException,
                                                               IOException
        Process Ed25519 password plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-ed25519/
        Specified by:
        process in interface AuthenticationPlugin
        Parameters:
        out - out stream
        in - in stream
        context - connection context
        Returns:
        response packet
        Throws:
        IOException - if socket error
        SQLException - if plugin exception
      • hash

        public byte[] hash​(Credential credential)
        Return Hash
        Specified by:
        hash in interface AuthenticationPlugin
        Parameters:
        credential - Credential
        Returns:
        hash