byte[] username = name.getBytes("UTF-8");
// I don't know why there is not a better way to go from char[] -> byte[].
byte[] password = serverPassword.getBytes("UTF-8");
// create authentication token
InitialContextToken authenticationToken = new InitialContextToken(username, password, encodedTargetName);
// ASN.1-encode it, as defined in RFC 2743.
encodedAuthenticationToken = CSIv2Util.encodeInitialContextToken(authenticationToken, codec);
}
if (identityToken != absentIdentityToken || encodedAuthenticationToken != noAuthenticationToken) {