gpt4 book ai didi

org.bouncycastle.asn1.x9.X962NamedCurves.getNames()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 17:01:05 26 4
gpt4 key购买 nike

本文整理了Java中org.bouncycastle.asn1.x9.X962NamedCurves.getNames()方法的一些代码示例,展示了X962NamedCurves.getNames()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X962NamedCurves.getNames()方法的具体详情如下:
包路径:org.bouncycastle.asn1.x9.X962NamedCurves
类名称:X962NamedCurves
方法名:getNames

X962NamedCurves.getNames介绍

[英]returns an enumeration containing the name strings for curves contained in this structure.
[中]返回一个枚举,其中包含此结构中包含的曲线的名称字符串。

代码示例

代码示例来源:origin: org.xipki.tk/shell-base

@Override
protected Set<String> getEnums() {
  Set<String> curveNames = new HashSet<>();
  Enumeration<?> names = X962NamedCurves.getNames();
  while (names.hasMoreElements()) {
    curveNames.add((String) names.nextElement());
  }
  names = SECNamedCurves.getNames();
  while (names.hasMoreElements()) {
    curveNames.add((String) names.nextElement());
  }
  names = TeleTrusTNamedCurves.getNames();
  while (names.hasMoreElements()) {
    curveNames.add((String) names.nextElement());
  }
  names = NISTNamedCurves.getNames();
  while (names.hasMoreElements()) {
    curveNames.add((String) names.nextElement());
  }
  return curveNames;
}

代码示例来源:origin: kaikramer/keystore-explorer

/**
 * Return the list of all curve names for this set.
 *
 * @return The named curves that belong to this set
 */
@SuppressWarnings("unchecked")
public List<String> getAllCurveNames() {
  Enumeration<String> en = null;
  switch (this) {
  case ANSI_X9_62:
    en = X962NamedCurves.getNames();
    break;
  case TELETRUST:
    en = TeleTrusTNamedCurves.getNames();
    break;
  case NIST:
    en = NISTNamedCurves.getNames();
    break;
  case SEC:
    en = SECNamedCurves.getNames();
    break;
  }
  if (en == null) {
    return new ArrayList<>();
  }
  return Collections.list(en);
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * return an enumeration of the names of the available curves.
 *
 * @return an enumeration of the names of the available curves.
 */
public static Enumeration getNames()
{
  Vector v = new Vector();
  addEnumeration(v, X962NamedCurves.getNames());
  addEnumeration(v, SECNamedCurves.getNames());
  addEnumeration(v, NISTNamedCurves.getNames());
  addEnumeration(v, TeleTrusTNamedCurves.getNames());
  return v.elements();
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * return an enumeration of the names of the available curves.
 *
 * @return an enumeration of the names of the available curves.
 */
public static Enumeration getNames()
{
  Vector v = new Vector();
  addEnumeration(v, X962NamedCurves.getNames());
  addEnumeration(v, SECNamedCurves.getNames());
  addEnumeration(v, NISTNamedCurves.getNames());
  addEnumeration(v, TeleTrusTNamedCurves.getNames());
  addEnumeration(v, ANSSINamedCurves.getNames());
  addEnumeration(v, ECGOST3410NamedCurves.getNames());
  addEnumeration(v, GMNamedCurves.getNames());
  return v.elements();
}

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