You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by Jason Dillon <ja...@planet57.com> on 2010/09/21 22:08:00 UTC

Basic auth handler re-encodes each time

Any reason why BasicAuthSecurityHandler needs to re-encode the user:pass each time instead of just caching the result of getEncodedString() ?

--jason

Re: Basic auth handler re-encodes each time

Posted by Jason Dillon <ja...@planet57.com>.
Should probably also have a nice constructor like:

    public BasicAuthSecurityHandler(final String username, final String password) {
        setUserName(username);
        setPassword(password);
    }

--jason


On Sep 21, 2010, at 1:13 PM, Jason Dillon wrote:

> Somewhat related, why is AbstractAuthSecurityHandler.getEncodedString() static?
> 
> --jason
> 
> 
> On Sep 21, 2010, at 1:08 PM, Jason Dillon wrote:
> 
>> Any reason why BasicAuthSecurityHandler needs to re-encode the user:pass each time instead of just caching the result of getEncodedString() ?
>> 
>> --jason
> 


Re: Basic auth handler re-encodes each time

Posted by Jason Dillon <ja...@planet57.com>.
Somewhat related, why is AbstractAuthSecurityHandler.getEncodedString() static?

--jason


On Sep 21, 2010, at 1:08 PM, Jason Dillon wrote:

> Any reason why BasicAuthSecurityHandler needs to re-encode the user:pass each time instead of just caching the result of getEncodedString() ?
> 
> --jason