Results 1 to 6 of 6

Thread: Error at SimplePasswordValidationCallbackHandler?

  1. #1
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default Error at SimplePasswordValidationCallbackHandler?

    Hi,
    that's your code.
    Code:
    protected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException {
            if (callback instanceof PasswordValidationCallback) {
                PasswordValidationCallback passwordCallback = (PasswordValidationCallback) callback;
                if (passwordCallback.getRequest() instanceof PasswordValidationCallback.PlainTextPasswordRequest) {
                    passwordCallback.setValidator(new SimplePlainTextPasswordValidator());
                }
                else if (passwordCallback.getRequest() instanceof PasswordValidationCallback.DigestPasswordRequest) {
                    PasswordValidationCallback.DigestPasswordRequest digestPasswordRequest =
                            (PasswordValidationCallback.DigestPasswordRequest) passwordCallback.getRequest();
                    String password = users.getProperty(digestPasswordRequest.getUsername());
                    digestPasswordRequest.setPassword(password);
                    passwordCallback.setValidator(new PasswordValidationCallback.DigestPasswordValidator());
                }
                passwordCallback.setValidator(new SimplePlainTextPasswordValidator());
    But in the digest case, the setValidator set and after it the validator will be set again with a PlainTextValidator.

    Cheers,

    Ingo

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Oops . Could you file an issue?
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default

    Ok, done. It's here.

    I assume you'll fix it in the M3 nightly build.
    I find the sources very helpful in working with SWS. I would like it if the nightly builds also contain the source code ZIPs. Do you think it's possible?

    Cheers,

    Ingo

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    The issue has been fixed.

    With regard to the sources: we try and keep our download costs as low as possible. For this reason, the nightly snapshots do not contain the sources, nor the samples. You can check out the sources using svn though.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #5
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default

    Hi Arjen,

    thank you for fixing the problem.

    The problem is, that i can't simply debug SWS with a nightly build if the sources are not directly available.

    Maybe you can provide the JAR-source files as a seperate download?
    Cheers,

    Ingo

  6. #6
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    You can associate the jars with the subversion checkout, so I see no reason for having separate source zips.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •