本文整理汇总了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();
}
示例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;
}
示例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);
}
};
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}