org.glite.security.util
Class CertUtil

java.lang.Object
  extended byorg.glite.security.util.CertUtil

public class CertUtil
extends java.lang.Object

Reads a DER-encode, Base64-encoded, or PEM-encoded certificate from disk without using broken IAIK implementations...

Author:
mulmo

Constructor Summary
CertUtil()
           
 
Method Summary
static int findClientCert(java.security.cert.X509Certificate[] chain)
          Finds out the index of the client cert in a certificate chain.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertUtil

public CertUtil()
Method Detail

findClientCert

public static int findClientCert(java.security.cert.X509Certificate[] chain)
Finds out the index of the client cert in a certificate chain.

Returns:
the index of the client cert of -1 if no client cert was found