gpt4 book ai didi

com.netflix.spinnaker.halyard.config.model.v1.security.X509类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 18:36:40 26 4
gpt4 key购买 nike

本文整理了Java中com.netflix.spinnaker.halyard.config.model.v1.security.X509类的一些代码示例,展示了X509类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509类的具体详情如下:
包路径:com.netflix.spinnaker.halyard.config.model.v1.security.X509
类名称:X509

X509介绍

暂无

代码示例

代码示例来源: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: com.netflix.spinnaker.halyard/halyard-cli

@Override
 protected AuthnMethod editAuthnMethod(X509 x) {
  x.setRoleOid(isSet(roleOid) ? roleOid : x.getRoleOid());
  x.setSubjectPrincipalRegex(isSet(subjectPrincipalRegex) ? subjectPrincipalRegex : x.getSubjectPrincipalRegex());

  return x;
 }
}

代码示例来源: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

public boolean isEnabled() {
 return getOauth2().isEnabled() || getSaml().isEnabled() || getLdap().isEnabled()
   || getX509().isEnabled() || getIap().isEnabled();
}

代码示例来源: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-config

public boolean isEnabled() {
 return getOauth2().isEnabled() || getSaml().isEnabled() || getLdap().isEnabled()
   || getX509().isEnabled() || getIap().isEnabled();
}

代码示例来源: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

@Override
 protected AuthnMethod editAuthnMethod(X509 x) {
  x.setRoleOid(isSet(roleOid) ? roleOid : x.getRoleOid());
  x.setSubjectPrincipalRegex(isSet(subjectPrincipalRegex) ? subjectPrincipalRegex : x.getSubjectPrincipalRegex());

  return x;
 }
}

代码示例来源: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;
 }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com