Skip to content

Commit

Permalink
Merge pull request #135 from timja/fix-class-cast-in-jcasc
Browse files Browse the repository at this point in the history
Return object in converter if is SecretBytes
  • Loading branch information
jvz committed Feb 27, 2020
2 parents b564d22 + 235a70d commit 9bdfefa
Showing 1 changed file with 3 additions and 0 deletions.
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 9bdfefa

Please sign in to comment.