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