-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-1348] Fix AWS expecting symmetric key (#34)
* [PM-1348] switch to asymmetric key for aws encrypt/decrypt * [PM-1348] provide setting to use symmetric key on aws * [PM-1348] import system for exceptions * [PM-1348] add InvalidKeyTypeException * [PM-1348] allow InvalidKeyTypeException to be serializable * [PM-1348] add context to exception message * [PM-1348] actually add context to exception message
- Loading branch information
Showing
5 changed files
with
56 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Bit.KeyConnector.Exceptions | ||
{ | ||
[Serializable] | ||
public class InvalidKeyTypeException : Exception | ||
{ | ||
public InvalidKeyTypeException() | ||
: base("This type of key cannot perform this action.") { } | ||
|
||
public InvalidKeyTypeException(string message) : base(message) { } | ||
|
||
public InvalidKeyTypeException(string message, Exception innerException) | ||
: base(message, innerException) { } | ||
|
||
protected InvalidKeyTypeException(SerializationInfo info, StreamingContext context) | ||
: base(info, context) { } | ||
} | ||
} |
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