Skip to content

Commit

Permalink
server: rename VerySimpleByteSource to SerializableSimpleByteSource
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
  • Loading branch information
pierre committed Mar 28, 2017
1 parent b049d21 commit 897ce1b
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -72,7 +72,7 @@ protected AuthenticationInfo doGetAuthenticationInfo(final AuthenticationToken t
final ByteSource base64Salt = authenticationInfo.getCredentialsSalt();
final byte[] bytes = Base64.decode(base64Salt.getBytes());
// SimpleByteSource isn't Serializable
authenticationInfo.setCredentialsSalt(new VerySimpleByteSource(bytes));
authenticationInfo.setCredentialsSalt(new SerializableSimpleByteSource(bytes));

return authenticationInfo;
}
Expand All @@ -90,7 +90,7 @@ private void configureDataSource() {
setDataSource(dataSource);
}

private static final class VerySimpleByteSource implements ByteSource, Externalizable {
private static final class SerializableSimpleByteSource implements ByteSource, Externalizable {

private static final long serialVersionUID = 4498655519894503985L;

Expand All @@ -99,9 +99,9 @@ private static final class VerySimpleByteSource implements ByteSource, Externali
private String cachedBase64;

// For deserialization
public VerySimpleByteSource() {}
public SerializableSimpleByteSource() {}

VerySimpleByteSource(final byte[] bytes) {
SerializableSimpleByteSource(final byte[] bytes) {
this.bytes = bytes;
}

Expand Down

1 comment on commit 897ce1b

@sbrossie
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.