コード例 #1
0
 public String chooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2) {
   if (moCertificado != null) {
     try {
       return moCertificado.getAlias();
     } catch (Exception ex) {
       JDepuracion.anadirTexto(getClass().getName(), ex);
     }
   }
   return null;
 }
コード例 #2
0
 public X509Certificate[] getCertificateChain(String arg0) {
   if (moCertificado != null) {
     try {
       X509Certificate[] certificados = new X509Certificate[] {moCertificado.getX509Certificate()};
       return certificados;
     } catch (Exception ex) {
       JDepuracion.anadirTexto(getClass().getName(), ex);
     }
   }
   return null;
 }
コード例 #3
0
 public PrivateKey getPrivateKey(String arg0) {
   PrivateKey key = null;
   if (moCertificado != null) {
     try {
       key = (PrivateKey) moCertificado.getPrivateKey();
       System.out.println("Obtiene la clave privada");
       System.out.println("argumento" + arg0);
     } catch (Exception ex) {
       JDepuracion.anadirTexto(getClass().getName(), ex);
     }
   }
   return key;
 }