David Lloyd created ELY-94:
------------------------------
Summary: Password types not properly acquiring KeySpec
Key: ELY-94
URL:
https://issues.jboss.org/browse/ELY-94
Project: WildFly Elytron
Issue Type: Bug
Components: Password Types
Reporter: David Lloyd
Assignee: Darran Lofthouse
The password implementations' {{engineGetKeySpec}} and {{engineConvertibleToKeySpec}}
are all testing against an exact {{KeySpec}} type. However this makes it impossible to
acquire a general {{KeySpec}} of any type, and is also inconsistent with
{{KeyFactory}}'s behavior.
Change the implementations to use {{isAssignableFrom}} checks. All implementations should
allow a class of {{PasswordSpec}} or {{KeySpec}} to be passed in; in this case, that
type's preferred {{KeySpec}} type will be returned.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)