issrg.SAWS
Class TCBKeystoreManagement

java.lang.Object
  extended byissrg.SAWS.TCBKeystoreManagement

public class TCBKeystoreManagement
extends java.lang.Object

Author:
W.Xu

Constructor Summary
TCBKeystoreManagement()
          Creates a new instance of TCBKeystoreManagement
TCBKeystoreManagement(java.lang.String signkeystoreLocation, int numOfPassShares, java.lang.String encKeystoreLocation, int numOfEncPassShares, java.lang.String rootCAPara, java.lang.String vtPKCPara, int debugLevel)
           
 
Method Summary
 void checkEncKeystoreFile()
          This method check the the encryption keystore file
 void checkSigningKeystoreFile()
           
 void createEncryptionKeystore()
           
 void createSigningKeystore()
           
 byte[] getbaSigningPublicKeyCert()
           
 javax.crypto.spec.PBEParameterSpec getparamSpec()
           
 java.security.PublicKey getrootCAPublicKey()
           
 java.security.PrivateKey getsawsEncryptionPrivateKey()
           
 java.security.PublicKey getsawsEncryptionPublicKey()
           
 java.security.PrivateKey getsawsSigningPrivateKey()
           
 java.security.PublicKey getsawsSigningPublicKey()
           
 javax.crypto.SecretKey getsawsTCBSecretKey()
           
 java.lang.String getsigningAlgName()
           
 java.security.PublicKey getvtEncryptionPublicKey()
           
 void importRootCA()
           
 void importSigningPKC()
           
 void listSigningKeystore()
           
 void outputPKCRequest()
           
 void readKeystores()
          This method reads in the signing keypair and the encryption keypair, generates the symmetric key used for reading and writing lastSN and lastHash files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCBKeystoreManagement

public TCBKeystoreManagement()
Creates a new instance of TCBKeystoreManagement


TCBKeystoreManagement

public TCBKeystoreManagement(java.lang.String signkeystoreLocation,
                             int numOfPassShares,
                             java.lang.String encKeystoreLocation,
                             int numOfEncPassShares,
                             java.lang.String rootCAPara,
                             java.lang.String vtPKCPara,
                             int debugLevel)
Method Detail

checkSigningKeystoreFile

public void checkSigningKeystoreFile()

checkEncKeystoreFile

public void checkEncKeystoreFile()
This method check the the encryption keystore file


readKeystores

public void readKeystores()
This method reads in the signing keypair and the encryption keypair, generates the symmetric key used for reading and writing lastSN and lastHash files. Called by SAWSServer().


getrootCAPublicKey

public java.security.PublicKey getrootCAPublicKey()

getvtEncryptionPublicKey

public java.security.PublicKey getvtEncryptionPublicKey()

getsawsEncryptionPublicKey

public java.security.PublicKey getsawsEncryptionPublicKey()

getsawsEncryptionPrivateKey

public java.security.PrivateKey getsawsEncryptionPrivateKey()

getsawsSigningPrivateKey

public java.security.PrivateKey getsawsSigningPrivateKey()

getsawsSigningPublicKey

public java.security.PublicKey getsawsSigningPublicKey()

getbaSigningPublicKeyCert

public byte[] getbaSigningPublicKeyCert()

getsigningAlgName

public java.lang.String getsigningAlgName()

getsawsTCBSecretKey

public javax.crypto.SecretKey getsawsTCBSecretKey()

getparamSpec

public javax.crypto.spec.PBEParameterSpec getparamSpec()

outputPKCRequest

public void outputPKCRequest()

importSigningPKC

public void importSigningPKC()

createEncryptionKeystore

public void createEncryptionKeystore()

createSigningKeystore

public void createSigningKeystore()

importRootCA

public void importRootCA()

listSigningKeystore

public void listSigningKeystore()