jclouds/jclouds — pull request #254 by grkvlt (2011-12-17 22:50:02+00:00)
Title: Issue 779: Fix password/privateKey override issues with providers

This caused the tryBadPassword test component to fail (i.e. succeed) because the privateKey is not reset in the NodeMetadata even though the overriding LoginCredentials sets it to null. The password and privateKey use the Guava Optional which supports an absent or present option, or can be null to ignore.

One issue with this patch is that I removed the equals/hashCode methods in LoginCredentials allowing the Credentials implementations to override, which fixed some issues with the Guava CacheLoader.