System.NetEncoding.TBase64URLEncoding

From RAD Studio API Documentation
Jump to: navigation, search

System.NetEncoding.TCustomBase64EncodingSystem.NetEncoding.TNetEncodingSystem.TObjectTBase64URLEncoding

Delphi

TBase64URLEncoding = class(TCustomBase64Encoding)

C++

class PASCALIMPLEMENTATION TBase64URLEncoding : public TCustomBase64Encoding

Properties

Type Visibility Source Unit Parent
class public
System.NetEncoding.pas
System.NetEncoding.hpp
System.NetEncoding System.NetEncoding

Description

Class that serves both as a base class and as a shortcut to the encoding and decoding classes in System.NetEncoding.

TBase64URLEncoding inherits from System.NetEncoding.TCustomBase64Encoding, which inherits from System.NetEncoding.TNetEncoding

Class that serves both as a base class and as a shortcut to the encoding and decoding classes in System.NetEncoding.

It provides Base64URL encoding or decoding. The output is provided as a single string and the output end is not padded. Also, the ' + ' and ' / ' characters in the output string are respectively replaced by the ' - ' and ' _ ' characters. To use TBase64URLEncoding you normally do not need to create your own instance. You can use System.NetEncoding.TNetEncoding.Base64URL instead.

All subclasses of TNetEncoding provide the following encoding and decoding methods:

Encoding Decoding
Input Method Output Input Method Output

TBytes

EncodeBytesToString

String

DecodeStringToBytes

TBytes

TBytes

Encode

TBytes

Decode

TBytes

TStream

TStream

TStream

String

String

String

Input Strings for Decode and DecodeStringToBytes should be UTF8 encoded.

See Also