(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
@objc public class CryptoBridge: NSObject { | |
@objc public func generateKeyPair() -> BKeyPair { | |
let keyPair = RSA.generateKeyPair(keySize: RSA.KeySize.RSA2048) | |
return BKeyPair( | |
privateKey: (keyPair?.privateKey.dataRepresentation())!, | |
publicKey: (keyPair?.publicKey.dataRepresentation())! | |
) | |
} | |
package acme; | |
import com.yoti.mobile.android.connections.p2p.internal.exception.CryptoException; | |
import java.security.GeneralSecurityException; | |
import java.security.Key; | |
import java.security.KeyFactory; | |
import java.security.KeyPair; | |
import java.security.KeyPairGenerator; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; |
/** | |
* This class describes the configuration of the Yoti Tag payload. | |
*/ | |
@Getter | |
public class TagDescriptor { | |
private final Key piccMasterKey; | |
private final List<Application> applications; |
import com.jakewharton.u2020.data.api.GithubService; | |
import com.jakewharton.u2020.data.api.transforms.WeatherService; | |
import com.squareup.okhttp.OkHttpClient; | |
import retrofit.Retrofit; | |
public class ApiClient { | |
private static GithubService githubService; | |
private static WeatherService weatherService; |