- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.bouncycastle.asn1.x9.X962NamedCurves
类的一些代码示例,展示了X962NamedCurves
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X962NamedCurves
类的具体详情如下:
包路径:org.bouncycastle.asn1.x9.X962NamedCurves
类名称:X962NamedCurves
[英]table of the current named curves defined in X.962 EC-DSA.
[中]X.962 EC-DSA中定义的当前命名曲线表。
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public static X9ECParameters getByName(
String name)
{
ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toLowerCase(name));
if (oid != null)
{
return getByOID(oid);
}
return null;
}
代码示例来源: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: redfish64/TinyTravelTracker
/**
* return a X9ECParameters object representing the passed in named
* curve. The routine returns null if the curve is not present.
*
* @param name the name of the curve requested
* @return an X9ECParameters object or null if the curve is not available.
*/
public static X9ECParameters getByName(
String name)
{
X9ECParameters ecP = X962NamedCurves.getByName(name);
if (ecP == null)
{
ecP = SECNamedCurves.getByName(name);
}
if (ecP == null)
{
ecP = TeleTrusTNamedCurves.getByName(name);
}
if (ecP == null)
{
ecP = NISTNamedCurves.getByName(name);
}
return ecP;
}
代码示例来源:origin: org.xipki.tk/security
public static String getCurveName(final ASN1ObjectIdentifier curveOid) {
ParamUtil.requireNonNull("curveOid", curveOid);
String curveName = X962NamedCurves.getName(curveOid);
if (curveName == null) {
curveName = SECNamedCurves.getName(curveOid);
}
if (curveName == null) {
curveName = TeleTrusTNamedCurves.getName(curveOid);
}
if (curveName == null) {
curveName = NISTNamedCurves.getName(curveOid);
}
return curveName;
}
代码示例来源:origin: redfish64/TinyTravelTracker
/**
* return the object identifier signified by the passed in name. Null
* if there is no object identifier associated with name.
*
* @return the object identifier associated with name, if present.
*/
public static ASN1ObjectIdentifier getOID(
String name)
{
ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name);
if (oid == null)
{
oid = SECNamedCurves.getOID(name);
}
if (oid == null)
{
oid = TeleTrusTNamedCurves.getOID(name);
}
if (oid == null)
{
oid = NISTNamedCurves.getOID(name);
}
return oid;
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
ASN1ObjectIdentifier oid)
String name = X962NamedCurves.getName(oid);
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
String name)
ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name);
代码示例来源:origin: redfish64/TinyTravelTracker
public static X9ECParameters getByName(
String name)
{
ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toLowerCase(name));
if (oid != null)
{
return getByOID(oid);
}
return null;
}
代码示例来源: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: org.bouncycastle/bcprov-debug-jdk15on
String name)
X9ECParameters ecP = X962NamedCurves.getByName(name);
代码示例来源:origin: redfish64/TinyTravelTracker
/**
* return a X9ECParameters object representing the passed in named
* curve.
*
* @param oid the object id of the curve requested
* @return an X9ECParameters object or null if the curve is not available.
*/
public static X9ECParameters getByOID(
ASN1ObjectIdentifier oid)
{
X9ECParameters ecP = X962NamedCurves.getByOID(oid);
if (ecP == null)
{
ecP = SECNamedCurves.getByOID(oid);
}
if (ecP == null)
{
ecP = TeleTrusTNamedCurves.getByOID(oid);
}
// NOTE: All the NIST curves are currently from SEC, so no point in redundant OID lookup
return ecP;
}
代码示例来源: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
ASN1ObjectIdentifier oid)
X9ECParameters ecP = X962NamedCurves.getByOID(oid);
代码示例来源: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();
}
代码示例来源:origin: coova/jradius
X9ECParameters ecP = X962NamedCurves.getByOID(oid);
代码示例来源:origin: com.hynnet/jradius-extended
X9ECParameters ecP = X962NamedCurves.getByOID(oid);
代码示例来源:origin: net.jradius/jradius-extended
X9ECParameters ecP = X962NamedCurves.getByOID(oid);
我正在努力通过使用 ECDSA 实现 DTLS 1.2 握手来取得成功,但我在使用客户端证书时遇到了问题。当我生成它时,subjectPublicKeyInfo 似乎不正确:在 wireshark 中
我是一名优秀的程序员,十分优秀!