-
Notifications
You must be signed in to change notification settings - Fork 3
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 #301 from atc-net/feature/miscellaneous-extensions
Feature/miscellaneous extensions
- Loading branch information
Showing
21 changed files
with
1,094 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
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
39 changes: 39 additions & 0 deletions
39
docs/CodeDoc/Atc/System.Security.Cryptography.X509Certificates.md
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,39 @@ | ||
<div style='text-align: right'> | ||
|
||
[References](Index.md) - [References extended](IndexExtended.md) | ||
</div> | ||
|
||
# System.Security.Cryptography.X509Certificates | ||
|
||
<br /> | ||
|
||
## X509Certificate2Extensions | ||
Provides extension methods for the X509Certificate2 class. | ||
|
||
>```csharp | ||
>public static class X509Certificate2Extensions | ||
>``` | ||
### Static Methods | ||
#### GetNameIdentifier | ||
>```csharp | ||
>string GetNameIdentifier(this X509Certificate2 certificate) | ||
>``` | ||
><b>Summary:</b> Gets the name identifier of the certificate. This can be the FriendlyName, or a substring of the SubjectName. | ||
> | ||
><b>Parameters:</b><br> | ||
> `certificate` - The X509Certificate2 object.<br /> | ||
> | ||
><b>Returns:</b> The FriendlyName of the certificate if not null or empty; otherwise, a substring of the SubjectName starting from "CN=" if it exists, or the full SubjectName if "CN=" is not found. | ||
#### IsValid | ||
>```csharp | ||
>bool IsValid(this X509Certificate2 certificate) | ||
>``` | ||
><b>Summary:</b> Checks if the certificate is valid. A certificate is considered valid if it is not archived, the current date is within the certificate's validity period, and it has a non-empty name identifier. | ||
> | ||
><b>Parameters:</b><br> | ||
> `certificate` - The X509Certificate2 object.<br /> | ||
> | ||
><b>Returns:</b> True if the certificate is valid; otherwise, false. | ||
<hr /><div style='text-align: right'><i>Generated by MarkdownCodeDoc version 1.2</i></div> |
Oops, something went wrong.