Package org.postgresql.core.v3
Class ScramAuthenticator
java.lang.Object
org.postgresql.core.v3.ScramAuthenticator
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadvertisedMechanisms
(PGStream stream, ChannelBindingOption channelBinding) private static byte[]
getChannelBindingData
(PGStream stream, ChannelBindingOption channelBinding) (package private) void
(package private) void
handleAuthenticationSASLContinue
(int length) (package private) void
handleAuthenticationSASLFinal
(int length) private static com.ongres.scram.client.ScramClient
initializeScramClient
(char[] password, PGStream stream, Properties info) private void
sendAuthenticationMessage
(int bodyLength, ScramAuthenticator.BodySender bodySender)
-
Field Details
-
LOGGER
-
pgStream
-
scramClient
private final com.ongres.scram.client.ScramClient scramClient
-
-
Constructor Details
-
ScramAuthenticator
ScramAuthenticator(char[] password, PGStream pgStream, Properties info) throws PSQLException - Throws:
PSQLException
-
-
Method Details
-
initializeScramClient
private static com.ongres.scram.client.ScramClient initializeScramClient(char[] password, PGStream stream, Properties info) throws PSQLException - Throws:
PSQLException
-
advertisedMechanisms
private static List<String> advertisedMechanisms(PGStream stream, ChannelBindingOption channelBinding) throws PSQLException, IOException - Throws:
PSQLException
IOException
-
getChannelBindingData
private static byte[] getChannelBindingData(PGStream stream, ChannelBindingOption channelBinding) throws PSQLException - Throws:
PSQLException
-
handleAuthenticationSASL
- Throws:
IOException
-
handleAuthenticationSASLContinue
- Throws:
IOException
PSQLException
-
handleAuthenticationSASLFinal
- Throws:
IOException
PSQLException
-
sendAuthenticationMessage
private void sendAuthenticationMessage(int bodyLength, ScramAuthenticator.BodySender bodySender) throws IOException - Throws:
IOException
-