Class DropboxCertHelper
Helper methods that can be used to implement certificate pinning.
Inheritance
Inherited Members
Namespace: Dropbox.Api
Assembly: Dropbox.Api.dll
Syntax
public static class DropboxCertHelper
Remarks
Dropbox recommends that all clients implement certificate pinning and this class provides implementation for desktop and server application as InitializeCertPinning(). Unfortunately it isn't currently possible to implement this in a portable assembly, so this class also provides methods to help implement this.
For more information about certificate pinning see Certificate and Public Key Pinning.
These helper methods allow client code to check if the certificate used by a Dropbox server was issued with a certificate chain that originates with a root certificate that Dropbox either currently uses, or may use in the future. These methods would be called before calling the DropboxClient constructor.
Methods
| Improve this Doc View SourceInitializeCertPinning()
Initializes ssl certificate pinning.
Declaration
public static void InitializeCertPinning()
IsKnownRootCertPublicKey(Byte[])
Determines whether the specified public key is a known root certificate public key.
Declaration
public static bool IsKnownRootCertPublicKey(byte[] publicKey)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | publicKey | The public key. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsKnownRootCertPublicKey(String)
Determines whether the specified public key string is a known root certificate public key.
Declaration
public static bool IsKnownRootCertPublicKey(string publicKeyString)
Parameters
Type | Name | Description |
---|---|---|
System.String | publicKeyString | The public key string. |
Returns
Type | Description |
---|---|
System.Boolean |
|