Objective-C implementation of TripleSec