public static enum MagicGitSyncProperties.CredentialType extends Enum<MagicGitSyncProperties.CredentialType>
| Enum Constant and Description |
|---|
HTTPS
使用个人 HTTPS 账号/密码(或私人令牌)
|
NONE
未配置个人凭证,回退使用 magic-api.resource.git 的全局账号
|
SSH
使用个人 SSH 私钥(远程地址需为 ssh 格式,可配合 remote-url 自动切换)
|
| Modifier and Type | Method and Description |
|---|---|
static MagicGitSyncProperties.CredentialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MagicGitSyncProperties.CredentialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MagicGitSyncProperties.CredentialType NONE
public static final MagicGitSyncProperties.CredentialType SSH
public static final MagicGitSyncProperties.CredentialType HTTPS
public static MagicGitSyncProperties.CredentialType[] values()
for (MagicGitSyncProperties.CredentialType c : MagicGitSyncProperties.CredentialType.values()) System.out.println(c);
public static MagicGitSyncProperties.CredentialType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.