Skip to content

Commit

Permalink
Return object in converter if is SecretBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Feb 22, 2020
1 parent d8f76ae commit 235a70d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ public SecretBytes convert(Class type, Object value) {
if (value instanceof String) {
return SecretBytes.fromString((String) value);
}
if (value instanceof SecretBytes) {
return (SecretBytes) value;
}
throw new IllegalClassException(SecretBytes.class, value.getClass());
}
}
Expand Down

0 comments on commit 235a70d

Please sign in to comment.