Show / Hide Table of Contents

Class DropboxCertHelper

Helper methods that can be used to implement certificate pinning.

Inheritance
System.Object
DropboxCertHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

InitializeCertPinning()

Initializes ssl certificate pinning.

Declaration
public static void InitializeCertPinning()
| Improve this Doc View Source

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

true if the specified public key is a known root certificate public key; false otherwise.

| Improve this Doc View Source

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

true if the specified string is a known root certificate public key; false otherwise.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • InitializeCertPinning()
    • IsKnownRootCertPublicKey(Byte[])
    • IsKnownRootCertPublicKey(String)
Back to top Generated by DocFX