santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40921] - XML <X509Certificate> contents modified and signature normallly validated.
Date Sat, 11 Nov 2006 11:28:14 GMT
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=40921>.
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=40921





------- Additional Comments From fillipelima@gmail.com  2006-11-11 03:28 -------
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > 
> > Hello 
> > 
> > I tried to get the public key from the certificate. But the keyInfo object is
> > instance of KeyValue. I need that the KeyInfo Object was instance of
> > KeyInfo...so i could get x509Data and then x509Certificate. The method that i
> > recieve the KeyInfo object:
> > 
> > public KeySelectorResult select(KeyInfo keyInfo,  KeySelector.Purpose
> > purpose, AlgorithmMethod method, XMLCryptoContext context) throws
> > KeySelectorException {
> > 
> > Is there anyway to get the keyinfo as instance of KeyInfo ?
> 
> I'm afraid I don't understand the problem. keyInfo must be an instance of
> KeyInfo otherwise you will get a ClassCastException. You can call 
> keyInfo.getContent() which will return a List of XMLStructure objects, each
> of which represents an element in the KeyInfo (KeyValue, X509Data, etc).

  I would like so much that it was an instance of KeyInfo. however it is an
instance of KeyValue. when i call keyInfo.getContent() it returns the content of
the KeyValue...and when i call KeyInfo.getClass() it returns a DOMKeyValue instance

-- 
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.

Mime
View raw message