Skip to content

EncodedDomain

class in io.proptastic

class EncodedDomain

Byte strings drawn as text, base64 or hex: bytes().inBase64(). The text is always the bytes’ canonical encoding; nonCanonical draws what a strict decoder must refuse.

Methods

nonCanonical

Domain<String> nonCanonical()

Text a strict decoder must refuse, made from drawn bytes: in base64, non-zero pad bits where the last group has them, else padding that’s wrong, short or there when the encoder writes none; in hex, a digit too many. Many decoders accept some of it, which is the point: a signature or a hash over the text then differs for the same bytes.

Privacy