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 Initialize
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 Dropbox
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. |
publicKey | The public key. |
Returns
Type | Description |
---|---|
System. |
|
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. |
publicKeyString | The public key string. |
Returns
Type | Description |
---|---|
System. |
|