Class ScramAuthenticator


  • final class ScramAuthenticator
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • pgStream

        private final PGStream pgStream
      • scramClient

        private final com.ongres.scram.client.ScramClient scramClient
    • Method Detail

      • initializeScramClient

        private static com.ongres.scram.client.ScramClient initializeScramClient​(char[] password,
                                                                                 PGStream stream,
                                                                                 java.util.Properties info)
                                                                          throws PSQLException
        Throws:
        PSQLException
      • handleAuthenticationSASL

        void handleAuthenticationSASL()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • handleAuthenticationSASLContinue

        void handleAuthenticationSASLContinue​(int length)
                                       throws java.io.IOException,
                                              PSQLException
        Throws:
        java.io.IOException
        PSQLException
      • handleAuthenticationSASLFinal

        void handleAuthenticationSASLFinal​(int length)
                                    throws java.io.IOException,
                                           PSQLException
        Throws:
        java.io.IOException
        PSQLException
      • sendAuthenticationMessage

        private void sendAuthenticationMessage​(int bodyLength,
                                               ScramAuthenticator.BodySender bodySender)
                                        throws java.io.IOException
        Throws:
        java.io.IOException