-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BcryptAuthenticationException to allow clean handling of exceptio…
…ns on rehash impl.
- Loading branch information
1 parent
fbf1871
commit 6b8c4e8
Showing
5 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
The MIT License (MIT) | ||
Copyright (c) 2006 Damien Miller [email protected] (jBCrypt) | ||
Copyright (c) 2013 Ryan D. Emerle (.Net port) | ||
Copyright (c) 2016 Chris McKee (.Net-core port / patches) | ||
Copyright (c) 2016/2017 Chris McKee (.Net-core port / patches) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files | ||
(the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
|
||
namespace BCrypt.Net | ||
{ | ||
/// <summary>Exception for signalling hash validation errors. </summary> | ||
public class BcryptAuthenticationException : Exception | ||
{ | ||
/// <summary>Default constructor. </summary> | ||
public BcryptAuthenticationException() | ||
{ | ||
} | ||
|
||
/// <summary>Initializes a new instance of <see cref="BcryptAuthenticationException" />.</summary> | ||
/// <param name="message">The message.</param> | ||
public BcryptAuthenticationException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
/// <summary>Initializes a new instance of <see cref="BcryptAuthenticationException" />.</summary> | ||
/// <param name="message"> The message.</param> | ||
/// <param name="innerException">The inner exception.</param> | ||
public BcryptAuthenticationException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |