| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException( LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage1.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage1.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage2.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage2.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage1.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage1.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage2.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage2.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get( |
| | | String.valueOf(extendedResponse)); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_EXTENDED_RESPONSE.get(extendedResponse); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | default: |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, |
| | | message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | else |
| | | { |
| | | LocalizableMessage message = |
| | | ERR_LDAPAUTH_UNEXPECTED_GSSAPI_CALLBACK.get(String.valueOf(cb)); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_GSSAPI_CALLBACK.get(cb); |
| | | throw new UnsupportedCallbackException(cb, message.toString()); |
| | | } |
| | | } |
| | |
| | | // If the protocol op isn't an extended response, then that's a problem. |
| | | if (responseMessage.getProtocolOpType() != OP_TYPE_EXTENDED_RESPONSE) |
| | | { |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get( |
| | | String.valueOf(responseMessage.getProtocolOp())); |
| | | throw new ClientException( |
| | | LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | LocalizableMessage message = ERR_LDAPAUTH_UNEXPECTED_RESPONSE.get(responseMessage.getProtocolOp()); |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_LOCAL_ERROR, message); |
| | | } |
| | | |
| | | |