@@ -105,7 +105,7 @@ public KeyStore getKeyStore() throws CertificateSourceUnavailableException, IOEx
105105 try (InputStream stream = new FileInputStream (metadataPath )) {
106106 return getKeyStore (stream , processProvider );
107107 } catch (InterruptedException e ) {
108- throw new IOException ("Interrupted executing certificate provider command" , e );
108+ throw new IOException ("SecureConnect: Interrupted executing certificate provider command" , e );
109109 } catch (GeneralSecurityException e ) {
110110 throw new CertificateSourceUnavailableException (
111111 "SecureConnect encountered GeneralSecurityException:" , e );
@@ -117,13 +117,12 @@ public KeyStore getKeyStore() throws CertificateSourceUnavailableException, IOEx
117117 }
118118
119119 /**
120- * Returns true if the SecureConnect certificate source is available.
120+ * Returns true if the SecureConnect mTLS provider is available.
121121 *
122- * @throws IOException if a general I/O error occurs while determining certificate source
123- * availability
122+ * @throws IOException if a general I/O error occurs while determining availability.
124123 */
125124 @ Override
126- public boolean isCertificateSourceAvailable () throws IOException {
125+ public boolean isAvailable () throws IOException {
127126 try {
128127 this .getKeyStore ();
129128 } catch (CertificateSourceUnavailableException e ) {
@@ -142,7 +141,8 @@ static KeyStore getKeyStore(InputStream metadata, ProcessProvider processProvide
142141 // so 1000 milliseconds is plenty of time.
143142 int exitCode = runCertificateProviderCommand (process , 1000 );
144143 if (exitCode != 0 ) {
145- throw new IOException ("Cert provider command failed with exit code: " + exitCode );
144+ throw new IOException (
145+ "SecureConnect: Cert provider command failed with exit code: " + exitCode );
146146 }
147147
148148 // Create mTLS key store with the input certificates from shell command.
@@ -163,7 +163,7 @@ static int runCertificateProviderCommand(Process commandProcess, long timeoutMil
163163 boolean terminated = commandProcess .waitFor (timeoutMilliseconds , TimeUnit .MILLISECONDS );
164164 if (!terminated ) {
165165 commandProcess .destroy ();
166- throw new IOException ("Cert provider command timed out" );
166+ throw new IOException ("SecureConnect: Cert provider command timed out" );
167167 }
168168 return commandProcess .exitValue ();
169169 }
0 commit comments