-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from peggy-ntt/sftp/publicKey
sftp-public key authentication -code
- Loading branch information
Showing
7 changed files
with
155 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...gov/open/jrccaccess/autoconfigure/config/exceptions/KnownHostFileNotDefinedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package ca.bc.gov.open.jrccaccess.autoconfigure.config.exceptions; | ||
|
||
/** | ||
* An exception which is thrown when using sftp known_hosts file is not defined in configuration while allowUnknownKey is set to false. | ||
* | ||
*/ | ||
public class KnownHostFileNotDefinedException extends InvalidConfigException { | ||
/** | ||
* Constructs a new KnownHostFileNotDefinedException with the specified detail message. | ||
* | ||
* @param message the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method. | ||
*/ | ||
public KnownHostFileNotDefinedException(String message) { | ||
super(message); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...c/gov/open/jrccaccess/autoconfigure/config/exceptions/KnownHostFileNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package ca.bc.gov.open.jrccaccess.autoconfigure.config.exceptions; | ||
|
||
/** | ||
* An exception which is thrown when application cannot find specified known_hosts file. | ||
*/ | ||
public class KnownHostFileNotFoundException extends InvalidConfigException{ | ||
/** | ||
* Constructs a new InvalidConfigException with the specified detail message. | ||
* | ||
* @param message the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method. | ||
*/ | ||
public KnownHostFileNotFoundException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters