LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 07-Oct-2009, 06:36 AM
Jim Willeke
NNTP User
 
Posts: n/a
Default Re: Binary Data Search and Compare

Typically, you would read the "publicKey" attribute to read the
certificate into a bbyte[]

Then use the java.security.cert.X509Certificate api would be used to
read the various certificate parameters.

You could also write your own javax.net.ssl.X509TrustManager to
determine if the certificate is valid or not by comparing the various
certificate parameters.

-jim

On 10/6/2009 8:56 PM, tichung wrote:
>
> Our Government has issued every citizen an ID card and internal ID card
> has a certificate which is issued by Government CA Server. I already
> wrote the program to export this certificate and import to eDirectory.
> Now I write a program when a user puts his ID card to card reader, I
> will take this certificate of ID card to compare with eDirectory user
> certificate (of course I imported this certificate earlier). The
> Certificate is a binary type how can I compare and search?
>
> Thank You.
>
>

Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 03:43 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2