issrg.SAWS
Class TCBKeystoreManagement
java.lang.Object
issrg.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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()