当前位置: 首页>>代码示例>>Java>>正文


Java SshKeyCache类代码示例

本文整理汇总了Java中com.google.gerrit.server.ssh.SshKeyCache的典型用法代码示例。如果您正苦于以下问题:Java SshKeyCache类的具体用法?Java SshKeyCache怎么用?Java SshKeyCache使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SshKeyCache类属于com.google.gerrit.server.ssh包,在下文中一共展示了SshKeyCache类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CreateBatchUser

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
@Inject
public CreateBatchUser(@PluginName String pluginName, SchemaFactory<ReviewDb> schema,
					   PluginConfigFactory configFactory, SshKeyCache sshKeyCache, VersionedAuthorizedKeys.Accessor authorizedKeys,
					   AccountCache accountCache, AccountByEmailCache byEmailCache, AccountLoader.Factory infoLoader,
					   GroupsCollection groupsCollection, WorkQueue queue, ThreadLocalRequestContext context,
					   IdentifiedUser.GenericFactory userFactory) {
	this.schema = schema;
	this.sshKeyCache = sshKeyCache;
	this.authorizedKeys = authorizedKeys;
	this.accountCache = accountCache;
	this.byEmailCache = byEmailCache;
	this.infoLoader = infoLoader;
	this.groupsCollection = groupsCollection;
	this.context = context;
	this.userFactory = userFactory;
	pluginConfig = configFactory.getFromGerritConfig(pluginName);
	username = pluginConfig.getString("username", "jenkins");
	sshKey = pluginConfig.getString("sshKey");
	name = pluginConfig.getString("name", "Batch user");
	executor = queue.getDefaultQueue();

	createBatchUserIfNotExistsYet();
}
 
开发者ID:atteo,项目名称:jfactory,代码行数:24,代码来源:CreateBatchUser.java

示例2: AccountCreator

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
@Inject
AccountCreator(
    SchemaFactory<ReviewDb> schema,
    Sequences sequences,
    AccountsUpdate.Server accountsUpdate,
    VersionedAuthorizedKeys.Accessor authorizedKeys,
    GroupCache groupCache,
    @ServerInitiated Provider<GroupsUpdate> groupsUpdateProvider,
    SshKeyCache sshKeyCache,
    ExternalIdsUpdate.Server externalIdsUpdate,
    @SshEnabled boolean sshEnabled) {
  accounts = new HashMap<>();
  reviewDbProvider = schema;
  this.sequences = sequences;
  this.accountsUpdate = accountsUpdate;
  this.authorizedKeys = authorizedKeys;
  this.groupCache = groupCache;
  this.groupsUpdateProvider = groupsUpdateProvider;
  this.sshKeyCache = sshKeyCache;
  this.externalIdsUpdate = externalIdsUpdate;
  this.sshEnabled = sshEnabled;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:23,代码来源:AccountCreator.java

示例3: module

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
public static Module module() {
  return new CacheModule() {
    @Override
    protected void configure() {
      cache(CACHE_NAME, String.class, new TypeLiteral<Iterable<SshKeyCacheEntry>>() {})
          .loader(Loader.class);
      bind(SshKeyCacheImpl.class);
      bind(SshKeyCache.class).to(SshKeyCacheImpl.class);
      bind(SshKeyCreator.class).to(SshKeyCreatorImpl.class);
    }
  };
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:13,代码来源:SshKeyCacheImpl.java

示例4: AddSshKey

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
@Inject
AddSshKey(
    Provider<CurrentUser> self,
    PermissionBackend permissionBackend,
    VersionedAuthorizedKeys.Accessor authorizedKeys,
    SshKeyCache sshKeyCache,
    AddKeySender.Factory addKeyFactory) {
  this.self = self;
  this.permissionBackend = permissionBackend;
  this.authorizedKeys = authorizedKeys;
  this.sshKeyCache = sshKeyCache;
  this.addKeyFactory = addKeyFactory;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:14,代码来源:AddSshKey.java

示例5: CreateAccount

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
@Inject
CreateAccount(
    ReviewDb db,
    Sequences seq,
    GroupsCollection groupsCollection,
    VersionedAuthorizedKeys.Accessor authorizedKeys,
    SshKeyCache sshKeyCache,
    AccountsUpdate.User accountsUpdate,
    AccountLoader.Factory infoLoader,
    DynamicSet<AccountExternalIdCreator> externalIdCreators,
    ExternalIds externalIds,
    ExternalIdsUpdate.User externalIdsUpdateFactory,
    @UserInitiated Provider<GroupsUpdate> groupsUpdate,
    OutgoingEmailValidator validator,
    @Assisted String username) {
  this.db = db;
  this.seq = seq;
  this.groupsCollection = groupsCollection;
  this.authorizedKeys = authorizedKeys;
  this.sshKeyCache = sshKeyCache;
  this.accountsUpdate = accountsUpdate;
  this.infoLoader = infoLoader;
  this.externalIdCreators = externalIdCreators;
  this.externalIds = externalIds;
  this.externalIdsUpdateFactory = externalIdsUpdateFactory;
  this.groupsUpdate = groupsUpdate;
  this.validator = validator;
  this.username = username;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:30,代码来源:CreateAccount.java

示例6: DeleteSshKey

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
@Inject
DeleteSshKey(
    Provider<CurrentUser> self,
    PermissionBackend permissionBackend,
    VersionedAuthorizedKeys.Accessor authorizedKeys,
    SshKeyCache sshKeyCache) {
  this.self = self;
  this.permissionBackend = permissionBackend;
  this.authorizedKeys = authorizedKeys;
  this.sshKeyCache = sshKeyCache;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:12,代码来源:DeleteSshKey.java

示例7: ChangeUserName

import com.google.gerrit.server.ssh.SshKeyCache; //导入依赖的package包/类
@Inject
ChangeUserName(
    SshKeyCache sshKeyCache,
    ExternalIds externalIds,
    ExternalIdsUpdate.Server externalIdsUpdateFactory,
    @Assisted IdentifiedUser user,
    @Nullable @Assisted String newUsername) {
  this.sshKeyCache = sshKeyCache;
  this.externalIds = externalIds;
  this.externalIdsUpdateFactory = externalIdsUpdateFactory;
  this.user = user;
  this.newUsername = newUsername;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:14,代码来源:ChangeUserName.java


注:本文中的com.google.gerrit.server.ssh.SshKeyCache类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。