9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * The contents of this file are subject to the terms of the Common Development and
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * Distribution License (the License). You may not use this file except in compliance with the
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * specific language governing permission and limitations under the License.
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * When distributing Covered Software, include this CDDL Header Notice in each file and include
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * Header, with the fields enclosed by brackets [] replaced by your own identifying
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * information: "Portions copyright [year] [name of copyright owner]".
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * Copyright 2016 ForgeRock AS.
9ebd9a731316dfd624ce3bcc4ea6519d10899936Ken Stubbings * Utility class for assisting in the reading of QR code uri strings.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * Replaces characters for url decoding.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @param content The original string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @return The string with replaced characters.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni+ (NSString *)replaceCharactersForURLDecoding:(NSString *)content;
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * Decodes from Base64 url encoded string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @param content The original string to decode.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @return The decoded string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * Decodes a Base64 encoded string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @param base64String The original Base64 string to decode.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @return The decoded string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni+ (NSData *)decodeBase64:(NSString *)base64String;
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * Decodes an encoded string.
eea09ddc6e4b4287103c8500027f3e65b5470280Diego Colantoni * @param content The original string to decode.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @return The decode string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * Pads a string with '=' to have length multiple of 4 (for Base64 decoding).
eea09ddc6e4b4287103c8500027f3e65b5470280Diego Colantoni * @param content The original string to pad.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @return The padded string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * Checks if the given string is a valid Base64 string.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @param content The original string to check.
2708b42676edf3d2e8f85b3c22b9e3be3cf43eb8Diego Colantoni * @return YES if the string is a valid Base64 string, otherwise NO.