Table of Contents

Class Base64UrlEncoder

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Encodes and Decodes strings as Base64Url encoding.

public static class Base64UrlEncoder
Inheritance
Base64UrlEncoder
Inherited Members

Methods

DecodeBytes(string)

Converts the specified string, which encodes binary data as base-64-url digits, to an equivalent 8-bit unsigned integer array.

public static byte[] DecodeBytes(string str)

Parameters

str string

base64Url encoded string.

Returns

byte[]

UTF8 bytes.

Encode(byte[])

Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation which is encoded with base-64-url digits.

public static string Encode(byte[] inArray)

Parameters

inArray byte[]

An array of 8-bit unsigned integers.

Returns

string

The string representation in base 64 url encoding of length elements of inArray, starting at position offset.

Exceptions

ArgumentNullException

'inArray' is null.