public class AuthenticationTest extends BaseTestCase
BaseTestCase.MockConnectionConfigurationconn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
AuthenticationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
authLdapSaslCliPluginChallengeBadIterations()
Test wrong 'server-first-message' due to insufficient iterations.
|
void |
authLdapSaslCliPluginChallengeBadNonce()
Test wrong 'server-first-message' due to bad server nonce.
|
void |
authLdapSaslCliPluginChallengeBadProof()
Test wrong 'server-final-message' due to bad proof.
|
void |
authLdapSaslCliPluginChallengeMissingAttributes()
Test wrong 'server-first-message' due to missing attributes.
|
void |
authLdapSaslCliPluginChallengeMissingProof()
Test wrong 'server-final-message' due to missing proof.
|
void |
authLdapSaslCliPluginChallengeUnsupportedMech()
Test unsupported SASL mechanism.
|
void |
authLdapSaslCliPluginScramSha1TestVector()
As per RFC 5802, Section 5.
|
void |
authLdapSaslCliPluginScramSha256TestVector()
As per RFC 7677, Section 3.
|
private void |
overrideSaslClientData(AuthenticationPlugin<NativePacketPayload> authPlugin,
java.lang.String nonce)
Overrides the random parts of the SCRAM-SHA-1 or SCRAM-SHA-256 authentication elements (
cnonce and clientFirstMessageBare) with
the given values from the official test vector specified in RFC 5802, Section 5 and RFC 7677, Section 3. |
void |
testWl14650()
Test for WL#14650 - Support for MFA (multi factor authentication) authentication
|
appendRequiredProperties, assertByteArrayEquals, assertConnectionsHistory, assertEqualsFSAware, assertNonSecureConnection, assertResultSetLength, assertResultSetsEqual, assertSecureConnection, assertSecureConnection, assertSessionStatusEquals, assertThrows, assertThrows, assertThrows, assertThrows, cleanupTempFiles, createDatabase, createDatabase, createFunction, createFunction, createProcedure, createProcedure, createSchemaObject, createSchemaObject, createTable, createTable, createTable, createTable, createUser, createUser, createView, createView, currentTimeMillis, dropDatabase, dropDatabase, dropFunction, dropFunction, dropProcedure, dropProcedure, dropSchemaObject, dropSchemaObject, dropTable, dropTable, dropUser, dropUser, dropView, dropView, fillPrimitiveDefaults, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getEncodedHostFromTestsuiteUrl, getEncodedHostPortPairFromTestsuiteUrl, getFailoverConnection, getFailoverConnection, getHostFreePropertiesFromTestsuiteUrl, getHostFreePropertiesFromTestsuiteUrl, getHostFromTestsuiteUrl, getInstanceNumber, getLoadBalancedConnection, getLoadBalancedConnection, getLoadBalancedConnection, getMysqlVariable, getMysqlVariable, getNewConnection, getNoDbUrl, getPort, getPortFreeHostname, getPortFromTestsuiteUrl, getPropertiesFromTestsuiteUrl, getPropertiesFromUrl, getRowCount, getSingleIndexedValueWithQuery, getSingleIndexedValueWithQuery, getSingleValue, getSingleValueWithQuery, getSourceReplicaReplicationConnection, getSourceReplicaReplicationConnection, getSourceReplicaUrl, getSourceReplicaUrl, getUnreliableFailoverConnection, getUnreliableFailoverConnection, getUnreliableLoadBalancedConnection, getUnreliableLoadBalancedConnection, getUnreliableMultiHostConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, isClassAvailable, isCommunityEdition, isEnterpriseEdition, isMysqlRunningLocally, isRunningOnJRockit, isServerRunningOnWindows, isSysPropDefined, logDebug, newTempBinaryFile, randomString, removeHostRelatedProps, removeSqlMode, runLongTests, setUpBase, supportsLoadLocalInfile, supportsTestCachingSha2PasswordKeys, supportsTestCertificates, supportsTestSha256PasswordKeys, supportsTimeZoneNames, supportsTLSv1_2, tearDownBase, versionMeetsMinimum, versionMeetsMinimumprivate void overrideSaslClientData(AuthenticationPlugin<NativePacketPayload> authPlugin, java.lang.String nonce)
cnonce and clientFirstMessageBare) with
the given values from the official test vector specified in RFC 5802, Section 5 and RFC 7677, Section 3.authPlugin - the AuthenticationPlugin where to override the internal randomly generated values.nonce - the nonce to inject into the authentication plugin object.@Test
public void authLdapSaslCliPluginScramSha1TestVector()
throws java.lang.Exception
C: n,,n=user,r=fyko+d2lbbFgONRv9qkxdawL S: r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j,s=QSXCR+Q6sek8bf92,i=4096 C: c=biws,r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j,p=v0X8v3Bz2T0CJGbJQyF0X+HI4Ts= S: v=rmF9pqV8S7suAoZWja4dJRkFsKQ=
java.lang.Exception@Test
public void authLdapSaslCliPluginScramSha256TestVector()
throws java.lang.Exception
C: n,,n=user,r=rOprNGfwEbeRWgbNEkqO S: r=rOprNGfwEbeRWgbNEkqO%hvYDpWUa2RaTCAfuxFIlj)hNlF$k0,s=W22ZaJ0SNY7soEsUEjb6gQ==,i=4096 C: c=biws,r=rOprNGfwEbeRWgbNEkqO%hvYDpWUa2RaTCAfuxFIlj)hNlF$k0,p=dHzbZapWIk4jUhN+Ute9ytag9zjfMHgsqmmiz7AndVQ= S: v=6rriTRBi23WpRR/wtup+mMhUZUn/dB5nLTJRsjl95G4=
java.lang.Exception@Test
public void authLdapSaslCliPluginChallengeMissingAttributes()
throws java.lang.Exception
java.lang.Exception@Test
public void authLdapSaslCliPluginChallengeBadNonce()
throws java.lang.Exception
java.lang.Exception@Test
public void authLdapSaslCliPluginChallengeBadIterations()
throws java.lang.Exception
java.lang.Exception@Test
public void authLdapSaslCliPluginChallengeMissingProof()
throws java.lang.Exception
java.lang.Exception@Test
public void authLdapSaslCliPluginChallengeBadProof()
throws java.lang.Exception
java.lang.Exception@Test
public void authLdapSaslCliPluginChallengeUnsupportedMech()
throws java.lang.Exception
java.lang.Exception@Test
public void testWl14650()
throws java.lang.Exception
java.lang.Exception