I am working on client authentication(in a sample JSP application) using certificates.
I have written a code to extract the client information from the client certificate. Now I wanted to use certificate's serial number to identify the particular use from the database.
I extracted the serial number using . It gives me an output 3. Is this a integer, BigInteger or an array value?
Is there any way I can declare this as an another integer variable for example int a = (serial number value)?? I have not played much with jsp so I do not know exactly where to have a code for that in my jsp file.
I would really appreciate if someone could help me. Thanks in advance. I am attaching my code which extracts the serial number from the certificate installed.
[My idea is to identify the particular clients based on the serial number on their ceritificates. if 1 then its X, if 2 then its Y - Is it possible?]