You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2006/10/19 11:43:00 UTC
DO NOT REPLY [Bug 40796] New: - KeyResolverSpi derived classes require default constructor
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40796>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40796
Summary: KeyResolverSpi derived classes require default
constructor
Product: Security
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: regression
Priority: P2
Component: Signature
AssignedTo: security-dev@xml.apache.org
ReportedBy: info@frankcornelis.be
Since xmlsec 1.4.RC2a classes that are derived from KeyResolverSpi should have a
default constructor because of some code in KeyResolverSpi:
KeyResolverSpi tmp = (KeyResolverSpi) getClass().newInstance();
The thing is that I don't want that the class KeyResolverSpi instantiates
itself. Since my derived key resolver was passed arguments during construction
via the constructor, a new instance would not have these arguments passed in.
This makes 1.4.RC2a unusable for my application.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 40796] - KeyResolverSpi derived classes require default constructor
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40796>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40796
------- Additional Comments From info@frankcornelis.be 2006-10-19 03:11 -------
Even some classes of xmlsec itself (under
org/apache/xml/security/keys/keyresolver/implementations) will fail on this I guess.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 40796] - KeyResolverSpi derived classes require default constructor
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40796>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40796
raul-info@r-bg.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
------- Additional Comments From raul-info@r-bg.com 2006-10-19 04:15 -------
I see how you manage, you are right, if you use
KeyInfo.registerInternalKeyResolver(KeyResolverSpi realKeyResolver), you can
register an already created keyresolverSpi.
I will fix this, tonight.
As work arround you can overload
public PublicKey engineLookupAndResolvePublicKey
in your KeyResolverSpi it will fix your problem, make your class works in 1.3 &
1.4 and make it a little faster in 1.4.
Anyway I will fix it tonight and send you a new jar.
Regards,
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 40796] - KeyResolverSpi derived classes require default constructor
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40796>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40796
raul-info@r-bg.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From raul-info@r-bg.com 2006-10-19 03:55 -------
How do you register your new implementation the only way doing this is in
public static void register(String className);
And there is no public constractor for KeyResolver!!!
And the only protected constructor takes a string argument!!!
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 40796] - KeyResolverSpi derived classes require default constructor
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40796>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40796
sean.mullan@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
------- Additional Comments From sean.mullan@sun.com 2007-09-19 12:19 -------
Closing old bugs. Fixed in 1.4.1
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.