|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.SAWS.TCBKeystoreManagement
public class TCBKeystoreManagement
Class to manage the key store.
Constructor Summary | |
---|---|
TCBKeystoreManagement(java.lang.String signkeystoreLocation,
int numOfPassShares,
java.lang.String encKeystoreLocation,
int numOfEncPassShares,
java.lang.String rootCAPara,
java.lang.String vtPKCPara,
int debugLevel,
java.lang.String signingAlgName)
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,
java.lang.String signingAlgName,
javax.security.auth.callback.CallbackHandler ch)
|
Method Summary | |
---|---|
void |
checkEncKeystoreFile()
Checks if the encryption keystore exists. |
void |
checkSigningKeystoreFile()
Checks if the signing keystore exists. |
void |
createEncryptionKeystore()
Method that creates the SAWS's encryption key store. |
void |
createSigningKeystore()
Method that creates the SAWS's signing key store. |
void |
exportSigningPKC()
Method that exports the Public Key Certificate in the signing key store. |
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()
Method that imports the root CA certificate specified in SAWS's configuration file (saws.xml). |
void |
importSigningPKC()
Method that imports the Public Key Certificate signed by a Certificate Authority to the signing key store. |
void |
listSigningKeystore()
Method that lists all the certificates in the signing key store. |
void |
outputPKCRequest()
Method that creates public key certificate request file, to be signed by a Certificate Authority. |
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 |
---|
public TCBKeystoreManagement(java.lang.String signkeystoreLocation, int numOfPassShares, java.lang.String encKeystoreLocation, int numOfEncPassShares, java.lang.String rootCAPara, java.lang.String vtPKCPara, int debugLevel, java.lang.String signingAlgName)
public TCBKeystoreManagement(java.lang.String signkeystoreLocation, int numOfPassShares, java.lang.String encKeystoreLocation, int numOfEncPassShares, java.lang.String rootCAPara, java.lang.String vtPKCPara, int debugLevel, java.lang.String signingAlgName, javax.security.auth.callback.CallbackHandler ch)
Method Detail |
---|
public void checkSigningKeystoreFile()
public void checkEncKeystoreFile()
public void readKeystores()
public java.security.PublicKey getrootCAPublicKey()
public java.security.PublicKey getvtEncryptionPublicKey()
public java.security.PublicKey getsawsEncryptionPublicKey()
public java.security.PrivateKey getsawsEncryptionPrivateKey()
public java.security.PrivateKey getsawsSigningPrivateKey()
public java.security.PublicKey getsawsSigningPublicKey()
public byte[] getbaSigningPublicKeyCert()
public java.lang.String getsigningAlgName()
public javax.crypto.SecretKey getsawsTCBSecretKey()
public javax.crypto.spec.PBEParameterSpec getparamSpec()
public void outputPKCRequest()
public void exportSigningPKC()
public void importSigningPKC()
public void createEncryptionKeystore()
public void createSigningKeystore()
public void importRootCA()
public void listSigningKeystore()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |