uc3m.it.ptm.trustmanager
Class NativeX509

java.lang.Object
  extended byuc3m.it.ptm.trustmanager.NativeX509

public class NativeX509
extends java.lang.Object


Constructor Summary
NativeX509()
           
 
Method Summary
 java.lang.String[] findX509(java.lang.String pathDir, byte typeInfo, java.lang.String hashAlgorithmId, byte[] info)
           
 java.util.Vector getX509(java.lang.String pathDir, byte typeInfo, java.lang.String hashAlgorithmId, byte[] info)
           
 java.lang.String InfoX509(java.lang.String fichero, int opciones, java.lang.String[] argumentos)
          This native method recovers fields (indicated in argumentos) from a certificate stored in fichero>/b> file.
 int isX509Valid(byte typeInfo, java.lang.String hashAlgorithmId, byte[] info)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeX509

public NativeX509()
Method Detail

InfoX509

public java.lang.String InfoX509(java.lang.String fichero,
                                 int opciones,
                                 java.lang.String[] argumentos)
This native method recovers fields (indicated in argumentos) from a certificate stored in fichero>/b> file.

Parameters:
opciones - int with the number of the certificate's fields to recover
argumentos - array of Strings with the name of the certificate's fields to recover
Returns:
String with the recovered fields.

isX509Valid

public int isX509Valid(byte typeInfo,
                       java.lang.String hashAlgorithmId,
                       byte[] info)

getX509

public java.util.Vector getX509(java.lang.String pathDir,
                                byte typeInfo,
                                java.lang.String hashAlgorithmId,
                                byte[] info)

findX509

public java.lang.String[] findX509(java.lang.String pathDir,
                                   byte typeInfo,
                                   java.lang.String hashAlgorithmId,
                                   byte[] info)