| | |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_SEND_SIMPLE_BIND.get(getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_ENCODING_ERROR, |
| | | message, e); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_ENCODING_ERROR, message, e); |
| | | } |
| | | |
| | | |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_SEND_SASL_BIND.get( |
| | | SASL_MECHANISM_ANONYMOUS, getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_ENCODING_ERROR, |
| | | message, e); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_ENCODING_ERROR, message, e); |
| | | } |
| | | |
| | | |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_SEND_INITIAL_SASL_BIND.get( |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_ENCODING_ERROR, |
| | | message, e); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_ENCODING_ERROR, message, e); |
| | | } |
| | | |
| | | |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_INITIAL_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_INITIAL_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_INITIAL_BIND_RESPONSE.get( |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_SECOND_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_SECOND_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_CRAM_MD5, getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_SECOND_BIND_RESPONSE.get( |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_INITIAL_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_DIGEST_MD5, getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | SASL_MECHANISM_DIGEST_MD5, getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_INITIAL_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_DIGEST_MD5, getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_INITIAL_BIND_RESPONSE.get( |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_SECOND_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_DIGEST_MD5, getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | SASL_MECHANISM_DIGEST_MD5, getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_SECOND_BIND_RESPONSE.get( |
| | | SASL_MECHANISM_DIGEST_MD5, getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_SECOND_BIND_RESPONSE.get( |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException e) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(e)); |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE |
| | | .get(getExceptionMessage(ae)); |
| | | ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get(getExceptionMessage(e)); |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, ae); |
| | | ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_SERVER_DOWN, |
| | | message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get( |
| | | getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_CANNOT_READ_BIND_RESPONSE.get( |
| | |
| | | message); |
| | | } |
| | | } |
| | | catch (DecodeException ae) |
| | | catch (DecodeException | LDAPException e) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_WHOAMI_RESPONSE.get(getExceptionMessage(ae)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, ae); |
| | | ERR_LDAPAUTH_CANNOT_READ_WHOAMI_RESPONSE.get(getExceptionMessage(e)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, message, e); |
| | | } |
| | | catch (IOException ioe) |
| | | { |
| | |
| | | throw new ClientException( |
| | | ReturnCode.CLIENT_SIDE_SERVER_DOWN, message, ioe); |
| | | } |
| | | catch (LDAPException le) |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_CANNOT_READ_WHOAMI_RESPONSE.get(getExceptionMessage(le)); |
| | | throw new ClientException(ReturnCode.CLIENT_SIDE_DECODING_ERROR, |
| | | message, le); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LocalizableMessage message = |