Package com.axway.ats.action.security
Class CertificateUtilities
- java.lang.Object
-
- com.axway.ats.action.security.CertificateUtilities
-
public class CertificateUtilities extends Object
Class containing some certificate utilities methods
-
-
Constructor Summary
Constructors Constructor Description CertificateUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Properties
createKeyStoreFile(Certificate cert, String fullKeyStorePath, String keyStorePassword, String keyStoreType)
Create keystore filestatic Certificate[]
getSecurityCertificates(String host, String port)
-
-
-
Method Detail
-
getSecurityCertificates
public static Certificate[] getSecurityCertificates(String host, String port)
- Parameters:
host
- the hostport
- the port- Returns:
- array with all server-side certificates obtained from direct socket connection
-
createKeyStoreFile
public static Properties createKeyStoreFile(Certificate cert, String fullKeyStorePath, String keyStorePassword, String keyStoreType)
Create keystore file- Parameters:
cert
- the needed certificate for creating the keystorekeyStoreFullPath
- the full path where the keystore file will be locatedkeyStoreType
- the type of the keystore filekeyStorePassword
- the the password for the keystore TIP: if the keystoreFullPath, keyStoreType, keyStorePassword are empty we will set the default- Returns:
- Properties object with the keyStore location, type and password
-
-