本文整理了Java中com.netflix.spinnaker.halyard.config.model.v1.security.X509.isEnabled()
方法的一些代码示例,展示了X509.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509.isEnabled()
方法的具体详情如下:
包路径:com.netflix.spinnaker.halyard.config.model.v1.security.X509
类名称:X509
方法名:isEnabled
暂无
代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-config
@Override
public void validate(ConfigProblemSetBuilder p, X509 x509) {
if (!x509.isEnabled()) {
return;
}
if (x509.getRoleOid() != null && (x509.getRoleOid() == "")) {
p.addProblem(Problem.Severity.ERROR, "roleOid specified but given blank line");
}
}
}
代码示例来源:origin: spinnaker/halyard
@Override
public void validate(ConfigProblemSetBuilder p, X509 x509) {
if (!x509.isEnabled()) {
return;
}
if (x509.getRoleOid() != null && (x509.getRoleOid() == "")) {
p.addProblem(Problem.Severity.ERROR, "roleOid specified but given blank line");
}
}
}
代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-deploy
public X509Config(Security security) {
if (!security.getAuthn().getX509().isEnabled()) {
return;
}
X509 x509 = security.getAuthn().getX509();
this.enabled = x509.isEnabled();
if (StringUtils.isNotEmpty(x509.getRoleOid())) {
this.roleOid = x509.getRoleOid();
}
if (StringUtils.isNotEmpty(x509.getNodeName())) {
this.subjectPrincipalRegex = x509.getSubjectPrincipalRegex();
}
}
}
代码示例来源:origin: spinnaker/halyard
public X509Config(Security security) {
if (!security.getAuthn().getX509().isEnabled()) {
return;
}
X509 x509 = security.getAuthn().getX509();
this.enabled = x509.isEnabled();
if (StringUtils.isNotEmpty(x509.getRoleOid())) {
this.roleOid = x509.getRoleOid();
}
if (StringUtils.isNotEmpty(x509.getNodeName())) {
this.subjectPrincipalRegex = x509.getSubjectPrincipalRegex();
}
}
}
代码示例来源:origin: spinnaker/halyard
public boolean isEnabled() {
return getOauth2().isEnabled() || getSaml().isEnabled() || getLdap().isEnabled()
|| getX509().isEnabled() || getIap().isEnabled();
}
代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-config
public boolean isEnabled() {
return getOauth2().isEnabled() || getSaml().isEnabled() || getLdap().isEnabled()
|| getX509().isEnabled() || getIap().isEnabled();
}
代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-deploy
@Override
protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
GateConfig config = new GateConfig(gate, security);
if (security.getAuthn().getOauth2().isEnabled()) {
config.spring = new SpringConfig(security);
} else if (security.getAuthn().getSaml().isEnabled()) {
config.saml = new SamlConfig(security);
} else if (security.getAuthn().getLdap().isEnabled()) {
config.ldap = new LdapConfig(security);
} else if (security.getAuthn().getIap().isEnabled()) {
config.google.iap = new IAPConfig(security);
}
if (security.getAuthn().getX509().isEnabled()) {
config.x509 = new X509Config(security);
}
return config;
}
}
代码示例来源:origin: spinnaker/halyard
@Override
protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
GateConfig config = new GateConfig(gate, security);
if (security.getAuthn().getOauth2().isEnabled()) {
config.spring = new SpringConfig(security);
} else if (security.getAuthn().getSaml().isEnabled()) {
config.saml = new SamlConfig(security);
} else if (security.getAuthn().getLdap().isEnabled()) {
config.ldap = new LdapConfig(security);
} else if (security.getAuthn().getIap().isEnabled()) {
config.google.iap = new IAPConfig(security);
}
if (security.getAuthn().getX509().isEnabled()) {
config.x509 = new X509Config(security);
}
return config;
}
}
代码示例来源:origin: spinnaker/halyard
@Override
protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
GateConfig config = new GateConfig(gate, security);
if (security.getAuthn().getOauth2().isEnabled()) {
config.security.oauth2 = security.getAuthn().getOauth2();
} else if (security.getAuthn().getSaml().isEnabled()) {
config.saml = new SamlConfig(security);
} else if (security.getAuthn().getLdap().isEnabled()) {
config.ldap = new LdapConfig(security);
} else if (security.getAuthn().getIap().isEnabled()) {
config.google.iap = new IAPConfig(security);
}
if (security.getAuthn().getX509().isEnabled()) {
config.x509 = new X509Config(security);
}
return config;
}
}
代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-deploy
@Override
protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
GateConfig config = new GateConfig(gate, security);
if (security.getAuthn().getOauth2().isEnabled()) {
config.security.oauth2 = security.getAuthn().getOauth2();
} else if (security.getAuthn().getSaml().isEnabled()) {
config.saml = new SamlConfig(security);
} else if (security.getAuthn().getLdap().isEnabled()) {
config.ldap = new LdapConfig(security);
} else if (security.getAuthn().getIap().isEnabled()) {
config.google.iap = new IAPConfig(security);
}
if (security.getAuthn().getX509().isEnabled()) {
config.x509 = new X509Config(security);
}
return config;
}
}
内容来源于网络,如有侵权,请联系作者删除!