AuthEngine(String appId, String secret, TransportConf conf) throws GeneralSecurityException { this.appId = appId.getBytes(UTF_8); this.conf = conf; this.cryptoConf = conf.cryptoConf(); this.secret = secret.toCharArray(); this.random = CryptoRandomFactory.getCryptoRandom(cryptoConf); }
AuthEngine(String appId, String secret, TransportConf conf) throws GeneralSecurityException { this.appId = appId.getBytes(UTF_8); this.conf = conf; this.cryptoConf = conf.cryptoConf(); this.secret = secret.toCharArray(); this.random = CryptoRandomFactory.getCryptoRandom(cryptoConf); }
AuthEngine(String appId, String secret, TransportConf conf) throws GeneralSecurityException { this.appId = appId.getBytes(UTF_8); this.conf = conf; this.cryptoConf = conf.cryptoConf(); this.secret = secret.toCharArray(); this.random = CryptoRandomFactory.getCryptoRandom(cryptoConf); }