Source:
<code>public void handle(Callback[] callbacks) throws UnsupportedCallbackException { NameCallback nc = null; PasswordCallback pc = null; AuthorizeCallback ac = null; for (Callback callback : callbacks) { if (callback instanceof AuthorizeCallback) { ac = (AuthorizeCallback) callback; } else if (callback instanceof NameCallback) { nc = (NameCallback) callback; } else if (callback instanceof PasswordCallback) { pc = (PasswordCallback) callback; } else if (callback instanceof RealmCallback) { } else { throw new UnsupportedCallbackException(callback, "Unrecognized SASL Callback"); } } String userName = "UNKNOWN"; if (nc != null) { LOG.debug("handleNameCallback"); userName = nc.getDefaultName(); nc.setName(nc.getDefaultName()); } if (pc != null) { LOG.error("No password found for user: {}, validate klist matches jaas conf", userName); } if (ac != null) { @SuppressWarnings("checkstyle:AbbreviationAsWordInName") <START> String authenticationID = ac.getAuthenticationID(); <END> LOG.debug("Successfully authenticated client: authenticationID={} authorizationID= {}", authenticationID, ac.getAuthorizationID()); if (ac.getAuthorizationID() == null) { ac.setAuthorizedID(authenticationID); } if (!ac.getAuthenticationID().equals(ac.getAuthorizationID())) { if (!impersonationAllowed) { throw new IllegalArgumentException(ac.getAuthenticationID() + " attempting to impersonate " + ac.getAuthorizationID() + ". This is not allowed by this server."); } ReqContext.context().setRealPrincipal(new SaslTransportPlugin.User(ac.getAuthenticationID())); } else { ReqContext.context().setRealPrincipal(null); } ac.setAuthorized(true); } }</code><technical_language>rename</technical_language>

Target:
public void handle(Callback[] callbacks) throws UnsupportedCallbackException { NameCallback nc = null; PasswordCallback pc = null; AuthorizeCallback ac = null; for (Callback callback : callbacks) { if (callback instanceof AuthorizeCallback) { ac = (AuthorizeCallback) callback; } else if (callback instanceof NameCallback) { nc = (NameCallback) callback; } else if (callback instanceof PasswordCallback) { pc = (PasswordCallback) callback; } else if (callback instanceof RealmCallback) { } else { throw new UnsupportedCallbackException(callback, "Unrecognized SASL Callback"); } } String userName = "UNKNOWN"; if (nc != null) { LOG.debug("handleNameCallback"); userName = nc.getDefaultName(); nc.setName(nc.getDefaultName()); } if (pc != null) { LOG.error("No password found for user: {}, validate klist matches jaas conf", userName); } if (ac != null) { String authenticationId = ac.getAuthenticationID(); LOG.debug("Successfully authenticated client: authenticationID={} authorizationID= {}", authenticationId, ac.getAuthorizationID()); if (ac.getAuthorizationID() == null) { ac.setAuthorizedID(authenticationId); } if (!ac.getAuthenticationID().equals(ac.getAuthorizationID())) { if (!impersonationAllowed) { throw new IllegalArgumentException(ac.getAuthenticationID() + " attempting to impersonate " + ac.getAuthorizationID() + ". This is not allowed by this server."); } ReqContext.context().setRealPrincipal(new SaslTransportPlugin.User(ac.getAuthenticationID())); } else { ReqContext.context().setRealPrincipal(null); } ac.setAuthorized(true); } }