mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
31 lines
857 B
Objective-C
31 lines
857 B
Objective-C
//
|
|
// JWTBase64Coder.h
|
|
// Pods
|
|
//
|
|
// Created by Lobanov Dmitry on 05.10.16.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@protocol JWTStringCoder__Protocol <NSObject>
|
|
- (NSString *)stringWithData:(NSData *)data;
|
|
- (NSData *)dataWithString:(NSString *)string;
|
|
@end
|
|
|
|
@interface JWTBase64Coder : NSObject
|
|
+ (instancetype)withBase64String;
|
|
+ (instancetype)withPlainString;
|
|
+ (NSString *)base64UrlEncodedStringWithData:(NSData *)data;
|
|
+ (NSData *)dataWithBase64UrlEncodedString:(NSString *)urlEncodedString;
|
|
@end
|
|
|
|
@interface JWTBase64Coder (JWTStringCoder__Protocol) <JWTStringCoder__Protocol> @end
|
|
|
|
|
|
@interface JWTStringCoder__For__Encoding : NSObject
|
|
@property (assign, nonatomic, readwrite) NSStringEncoding stringEncoding;
|
|
+ (instancetype)utf8Encoding;
|
|
@end
|
|
@interface JWTStringCoder__For__Encoding (JWTStringCoder__Protocol) <JWTStringCoder__Protocol> @end
|