Пример #1
0
 protected OAuthFetcherConfig()
 {
     byte[] masterKey = Crypto.getRandomBytes(BasicBlobCrypter.MASTER_KEY_MIN_LEN);
     this.stateCrypter = new BasicBlobCrypter(masterKey);
     this.tokenStore = new GadgetOAuthTokenStore(BasicOAuthStore.Instance, DefaultGadgetSpecFactory.Instance);
 }
Пример #2
0
 protected OAuthFetcherConfig()
 {
     byte[] masterKey = Crypto.getRandomBytes(BasicBlobCrypter.MASTER_KEY_MIN_LEN);
     this.stateCrypter = new BasicBlobCrypter(masterKey);
     this.tokenStore   = new GadgetOAuthTokenStore(BasicOAuthStore.Instance, DefaultGadgetSpecFactory.Instance);
 }