Table of Contents

Class JwtBase64UrlEncoder

Namespace
JWT
Assembly
Coherence.JWT.dll

base64 encoding/decoding implementation according to the JWT spec

public sealed class JwtBase64UrlEncoder : IBase64UrlEncoder
Inheritance
JwtBase64UrlEncoder
Implements

Constructors

JwtBase64UrlEncoder()

public JwtBase64UrlEncoder()

Methods

Decode(string)

Decodes the base64 string to a byte array.

public byte[] Decode(string input)

Parameters

input string

Returns

byte[]

Exceptions

ArgumentException
FormatException

Encode(byte[])

Encodes the byte array to a base64 string.

public string Encode(byte[] input)

Parameters

input byte[]

Returns

string

Exceptions

ArgumentNullException
ArgumentOutOfRangeException