| java.lang.Object com.bostechcorp.cbesb.ui.util.AuthenticationUtil
AuthenticationUtil | public class AuthenticationUtil (Code) | | |
Inner Class :protected class ProcessMonitor extends Thread | |
Method Summary | |
public static void | deleteTrustedCertificate(File jksTrustStoreFile, String password, String entryName) Delete a trusted certificate from a jks trust store file.
entryName should be an alias name in the truststore. | public static void | exportCertificateSigningRequest(File jksKeyFile, String password, File exportFileToCreate) Export a Certificate Signing Request from a private key jks file to a base-64 encoded
export file. | public static String | exportFileToString(File exportFile) Return a human readable string summarizing the contents of a base-64 encoded export file. | public static void | exportPublicKeyCertificate(File jksKeyFile, String password, File exportFileToCreate) | public static void | exportTrustedCertificate(File jksTrustStoreFile, String password, String entryName, File exportFileToCreate) Export a trusted certificate from a jks trust store file to a base-64 encoded export file.
entryName should be an alias name in the truststore. | public static void | generateKey(File jksFileToCreate, String dName, String password) Generate a private/public key pair and self signed certificate and write it to a
file in JKS format. | public static String | getCommandResult() | protected static String | getKeyToolPath() | public static String[] | getTrustStoreEntries(File jksTrustStoreFile, String password) Get a list of the entries in a trust store file. | public static void | importSignedCertificate(File jksKeyFile, String password, File importFile, String preRequiredFiles) Import a base-64 encoded signed certificate chain into a jks key file. | public static void | importTrustedCertificate(File jksTrustStoreFile, String password, File importFile) | public static String | keyFileToString(File jksKeyFile, String password) Return a readable string summarizing a key file
Used to "view" a key file. | public static void | main(String args) | protected static void | runKeyTool(String cmd) | public static String | trustStoreFileToString(File jksTrustStoreFile, String password) Return a readable string summarizing the contents of a trust store file. |
MULTIPLE_FILE_SEPARATOR | public static String MULTIPLE_FILE_SEPARATOR(Code) | | |
log | protected static Log log(Code) | | |
deleteTrustedCertificate | public static void deleteTrustedCertificate(File jksTrustStoreFile, String password, String entryName) throws Exception(Code) | | Delete a trusted certificate from a jks trust store file.
entryName should be an alias name in the truststore. Valid entries can be found with getTrustStoreEntries()
|
exportCertificateSigningRequest | public static void exportCertificateSigningRequest(File jksKeyFile, String password, File exportFileToCreate) throws Exception(Code) | | Export a Certificate Signing Request from a private key jks file to a base-64 encoded
export file.
|
exportFileToString | public static String exportFileToString(File exportFile) throws Exception(Code) | | Return a human readable string summarizing the contents of a base-64 encoded export file.
Use to "view" and export file.
|
exportPublicKeyCertificate | public static void exportPublicKeyCertificate(File jksKeyFile, String password, File exportFileToCreate) throws Exception(Code) | | Export the public key certificate (or certificate chain) from a private key jks file
to a base-64 encoded export file
|
exportTrustedCertificate | public static void exportTrustedCertificate(File jksTrustStoreFile, String password, String entryName, File exportFileToCreate) throws Exception(Code) | | Export a trusted certificate from a jks trust store file to a base-64 encoded export file.
entryName should be an alias name in the truststore. Valid entries can be found with getTrustStoreEntries()
|
generateKey | public static void generateKey(File jksFileToCreate, String dName, String password) throws Exception(Code) | | Generate a private/public key pair and self signed certificate and write it to a
file in JKS format.
This will overwite an existing file.
|
getCommandResult | public static String getCommandResult()(Code) | | |
getKeyToolPath | protected static String getKeyToolPath()(Code) | | |
getTrustStoreEntries | public static String[] getTrustStoreEntries(File jksTrustStoreFile, String password) throws Exception(Code) | | Get a list of the entries in a trust store file. Use this to browse a trust file for
exporting or deleting an entry.
|
importSignedCertificate | public static void importSignedCertificate(File jksKeyFile, String password, File importFile, String preRequiredFiles) throws Exception(Code) | | Import a base-64 encoded signed certificate chain into a jks key file.
This replaces the existing certificate in the key file.
|
importTrustedCertificate | public static void importTrustedCertificate(File jksTrustStoreFile, String password, File importFile) throws Exception(Code) | | Import a base-64 encoded certificate file into a trust store
|
keyFileToString | public static String keyFileToString(File jksKeyFile, String password) throws Exception(Code) | | Return a readable string summarizing a key file
Used to "view" a key file.
|
trustStoreFileToString | public static String trustStoreFileToString(File jksTrustStoreFile, String password) throws Exception(Code) | | Return a readable string summarizing the contents of a trust store file.
Used to "view" a trust store.
|
|
|