com.Sericon.ProductAgents.AutoSSLAgent
Class KeystoreAccess

java.lang.Object
  extended by com.Sericon.ProductAgents.AutoSSLAgent.KeystoreAccess

public class KeystoreAccess
extends java.lang.Object

Provide access to the generated SSL certificate in the Keystore. This class contains enough information to be able to access the generated SSL certificate as well as the the private key so that encrypted transmissions may be supported.


Method Summary
 void exportSSLCertificate(java.lang.String fileName)
          Export the generated SSL certificate into its own file so that it can be viewed with a standard certificate viewer.
 java.lang.String getKeystoreFilename()
          Gets the file name of the keystore that contains the SSL certificate
 java.lang.String getKeystorePassword()
          Gets the password of the keystore that contains the SSL certificate
 java.security.PrivateKey getPrivateKey()
          Gets the SSL certificate's private key
 java.security.cert.X509Certificate getSSLCertificate()
          Gets the SSL certificate
 java.lang.String getSSLCertificateAlias()
          Gets the alias of the SSL certificate in this keystore
 java.lang.String getSSLCertificatePassword()
          Gets the password of the SSL certificate's private key
 java.lang.String toString()
          Creates a textual representation of all of the information contained in this keystore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getKeystoreFilename

public java.lang.String getKeystoreFilename()
Gets the file name of the keystore that contains the SSL certificate

Returns:
File name of the Keystore

getKeystorePassword

public java.lang.String getKeystorePassword()
Gets the password of the keystore that contains the SSL certificate

Returns:
Password of the Keystore

getSSLCertificatePassword

public java.lang.String getSSLCertificatePassword()
Gets the password of the SSL certificate's private key

Returns:
Password for the private key

getSSLCertificateAlias

public java.lang.String getSSLCertificateAlias()
Gets the alias of the SSL certificate in this keystore

Returns:
Alias of the certificate in the Keystore

getSSLCertificate

public java.security.cert.X509Certificate getSSLCertificate()
                                                     throws PRAException
Gets the SSL certificate

Returns:
The SSL certificate
Throws:
PRAException

getPrivateKey

public java.security.PrivateKey getPrivateKey()
                                       throws PRAException
Gets the SSL certificate's private key

Returns:
The certificate's private key
Throws:
PRAException

toString

public java.lang.String toString()
Creates a textual representation of all of the information contained in this keystore

Overrides:
toString in class java.lang.Object
Returns:
A textual representation of the information in the Keystore

exportSSLCertificate

public void exportSSLCertificate(java.lang.String fileName)
                          throws PRAException
Export the generated SSL certificate into its own file so that it can be viewed with a standard certificate viewer.

Parameters:
fileName - The name of the file to export the SSL certificate into. Note that a certificate typically has a file type of .cer
Throws:
PRAException