Skip to content

Commit

Permalink
Improve method naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lutovich authored and zhenlineo committed Jul 24, 2018
1 parent cf4cc84 commit 6cf6f0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -23,7 +23,7 @@

public interface StateMachineContext
{
void authenticationCompleted( String user );
void authenticatedAsUser( String user );

void handleFailure( Throwable cause, boolean fatal ) throws BoltConnectionFatality;

Expand Down
Expand Up @@ -47,7 +47,7 @@ public BoltStateMachineV1Context( BoltStateMachine machine, BoltChannel boltChan
}

@Override
public void authenticationCompleted( String user )
public void authenticatedAsUser( String user )
{
boltChannel.updateUser( user );
}
Expand Down
Expand Up @@ -81,7 +81,7 @@ private BoltStateMachineState processInitMessage( InitMessage message, StateMach
{
AuthenticationResult authResult = context.boltSpi().authenticate( authToken );
String username = authResult.getLoginContext().subject().username();
context.authenticationCompleted( username );
context.authenticatedAsUser( username );

StatementProcessor statementProcessor = newStatementProcessor( username, userAgent, authResult, context );
context.connectionState().setStatementProcessor( statementProcessor );
Expand Down

0 comments on commit 6cf6f0c

Please sign in to comment.