}
private KrbError getErrorMessage( KerberosPrincipal principal, KerberosException exception )
{
KrbError krbError = new KrbError();
KerberosTime now = new KerberosTime();
//FIXME not sure if this is the correct error to set for KrbError instance
// the correct change password protocol related error code is set in e-data anyway
krbError.setErrorCode( ErrorType.KRB_ERR_GENERIC );
krbError.setEText( exception.getLocalizedMessage() );
krbError.setSName( new PrincipalName( principal ) );
krbError.setSTime( now );
krbError.setSusec( 0 );
krbError.setEData( buildExplanatoryData( exception ) );
return krbError;
}