You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
SSLLWrapper
1
+
What Is this wrapper?
2
2
===========
3
3
4
-
SSLLWrapper stands for SSL Labs Wrapper which is the first publicly available .NET wrapper developed for the [SSL Labs' Assessment API's](https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md) that allow the consumer to test SSL servers on the public internet.
4
+
This is the first publicly available .NET wrapper developed for the [SSL Labs' Assessment API's](https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md) that allow the consumer to test SSL servers on the public internet.
5
5
6
6
This wrapper easies the communication to the API's for .NET developers which allows you as the developer to focus on your project rather than managing the plumbing and overhead required to consume the API's.
7
7
@@ -10,25 +10,25 @@ This wrapper easies the communication to the API's for .NET developers which all
10
10
- The wrapper does **NOT** use web scrapping like other wrappers which don't use the assessment API's.
11
11
12
12
### NuGet Package
13
-
The wrapper can easily be imported into your project using the [SSLLWrapper NuGet package](https://www.nuget.org/packages/SSLLWrapper/). The NuGet install command for this package is:
13
+
The wrapper can easily be imported into your project using the [NuGet package](https://www.nuget.org/packages/SSLLabsApiWrapper/). The NuGet install command for this package is:
14
14
15
-
**PM> Install-Package SSLLWrapper**
15
+
**PM> Install-Package SSLLabsApiWrapper**
16
16
17
17
### Wrapper Usage
18
-
When creating a new instance of SSLLWrapper you must supply the API url during the initialization. For example in C# this would be expressed as the following:
18
+
When creating a new instance of SSL Labs api wrapper service you must supply the API url during the initialization. For example in C# this would be expressed as the following:
Below are the method signatures of the SSLLWrapper Service.
27
+
Below are the method signatures of the SSL Labs api wrapper service.
28
28
29
29
##### Info()
30
30
31
-
The Info method is used to determine if the API is online and returns an [Info response object](https://github.com/AshleyPoole/SSLLWrapper/blob/master/README.md#info-1). No input parameters are taken.
31
+
The Info method is used to determine if the API is online and returns an [Info response object](https://github.com/AshleyPoole/sslLabs-api-wrapper/blob/master/README.md#info-1). No input parameters are taken.
32
32
33
33
```C#
34
34
publicInfoInfo()
@@ -47,6 +47,20 @@ The wrapper also contains an overloaded Analyze method which only requires the h
47
47
publicAnalyzeAnalyze(stringhost)
48
48
```
49
49
50
+
##### AutomaticAnalyze()
51
+
52
+
The Analyze method is used to initiate and wait for an assessment to complete before retrieving results. Compared to the normal Analyze() method this method keeps checking the Api and only when a scan has finished does it return. This saves the comsumer from having to write their own logic for handling an assessment in progress.
53
+
Another call to GetEndpointDetails() may be needed to view the whole result set for a given endpoint.
The wrapper also contains an overloaded AutomaticAnalyze method which only requires the host parameter. Internal is uses the following parameter options - Publish.Off, ClearCache.On, FromCache.Ignore, All.On.
60
+
```C#
61
+
publicAnalyzeAutomaticAnalyze(stringhost)
62
+
```
63
+
50
64
##### GetEndpointData()
51
65
52
66
The GetEndpointData method is used to retrieve a fully results set.
@@ -98,7 +112,8 @@ public class Error
98
112
publicstringengineVersion { get; set; }
99
113
publicstringcriteriaVersion { get; set; }
100
114
publicintclientMaxAssessments { get; set; }
101
-
publicstringnotice { get; set; }
115
+
publicintcurrentAssessments { get; set; }
116
+
publicList<string>messages { get; set; }
102
117
publicboolOnline { get; set; }
103
118
```
104
119
@@ -170,8 +185,8 @@ public enum All
170
185
### Author
171
186
Ashley Poole - www.ashleypoole.co.uk.
172
187
173
-
[SSLWrapper project's home page](http://www.ashleypoole.co.uk/ssllwrapper?utm_source=github&utm_medium=githubproject&utm_campaign=ssllwrapper)
188
+
[Project's home page](http://www.ashleypoole.co.uk/ssllabs-api-wrapper?utm_source=github&utm_medium=githubproject&utm_campaign=ssllwrapper)
174
189
175
-
Please contact me if you have any questions, issues or recommendations either via [my website](http://www.ashleypoole.co.uk), [Twitter](http://twitter.com/geekypants92) or [by email](mailto:[email protected]).
190
+
Please contact me if you have any questions, issues or recommendations either via [my website](http://www.ashleypoole.co.uk), [Twitter](http://twitter.com/AshleyPooleUK) or [by email](mailto:[email protected]).
0 commit comments