本文整理匯總了Java中org.thoughtcrime.securesms.util.TextSecurePreferences.getPushServerPassword方法的典型用法代碼示例。如果您正苦於以下問題:Java TextSecurePreferences.getPushServerPassword方法的具體用法?Java TextSecurePreferences.getPushServerPassword怎麽用?Java TextSecurePreferences.getPushServerPassword使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.thoughtcrime.securesms.util.TextSecurePreferences
的用法示例。
在下文中一共展示了TextSecurePreferences.getPushServerPassword方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: provideSignalMessageSenderFactory
import org.thoughtcrime.securesms.util.TextSecurePreferences; //導入方法依賴的package包/類
@Provides
SignalMessageSenderFactory provideSignalMessageSenderFactory() {
return new SignalMessageSenderFactory() {
@Override
public SignalServiceMessageSender create() {
return new SignalServiceMessageSender(networkAccess.getConfiguration(context),
TextSecurePreferences.getLocalNumber(context),
TextSecurePreferences.getPushServerPassword(context),
new SignalProtocolStoreImpl(context),
BuildConfig.USER_AGENT,
Optional.fromNullable(MessageRetrievalService.getPipe()),
Optional.<SignalServiceMessageSender.EventListener>of(new SecurityEventListener(context)));
}
};
}
示例2: createManager
import org.thoughtcrime.securesms.util.TextSecurePreferences; //導入方法依賴的package包/類
public static SignalServiceAccountManager createManager(Context context) {
return new SignalServiceAccountManager(new SignalServiceNetworkAccess(context).getConfiguration(context),
TextSecurePreferences.getLocalNumber(context),
TextSecurePreferences.getPushServerPassword(context),
BuildConfig.USER_AGENT);
}
示例3: provideSignalAccountManager
import org.thoughtcrime.securesms.util.TextSecurePreferences; //導入方法依賴的package包/類
@Provides SignalServiceAccountManager provideSignalAccountManager() {
return new SignalServiceAccountManager(networkAccess.getConfiguration(context),
TextSecurePreferences.getLocalNumber(context),
TextSecurePreferences.getPushServerPassword(context),
BuildConfig.USER_AGENT);
}
示例4: getPassword
import org.thoughtcrime.securesms.util.TextSecurePreferences; //導入方法依賴的package包/類
@Override
public String getPassword() {
return TextSecurePreferences.getPushServerPassword(context);
}