issrg.utils.handler
Class EncodeBase64

java.lang.Object
  extended by issrg.utils.handler.EncodeBase64

public class EncodeBase64
extends java.lang.Object

Author:
Linying Su

Constructor Summary
EncodeBase64(java.lang.String fileIn)
          Creates a new instance of EncodeBase64
 
Method Summary
 java.lang.String getBase64()
          this method returns the Base64 string of the certificate.
 java.lang.String getSubjectDN()
          this method returns the subject DN of the certificate.
 int getType()
          this method returns the type of the certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodeBase64

public EncodeBase64(java.lang.String fileIn)
             throws java.lang.Exception
Creates a new instance of EncodeBase64

Parameters:
fileIn - which is a local file path. This file is an X509 attribute certificate or public key certificate
Throws:
java.lang.Exception
Method Detail

getBase64

public java.lang.String getBase64()
this method returns the Base64 string of the certificate.


getSubjectDN

public java.lang.String getSubjectDN()
this method returns the subject DN of the certificate.


getType

public int getType()
this method returns the type of the certificate. if returns 100 then the certificate is a PKC. if returns 101 then the certificate is a AC. if returns -1 then indicating a unknown type.