本文整理了Java中org.bouncycastle.asn1.x509.X509Name.canonicalize()
方法的一些代码示例,展示了X509Name.canonicalize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509Name.canonicalize()
方法的具体详情如下:
包路径:org.bouncycastle.asn1.x509.X509Name
类名称:X509Name
方法名:canonicalize
暂无
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
private boolean equivalentStrings(String s1, String s2)
{
String value = canonicalize(s1);
String oValue = canonicalize(s2);
if (!value.equals(oValue))
{
value = stripInternalSpaces(value);
oValue = stripInternalSpaces(oValue);
if (!value.equals(oValue))
{
return false;
}
}
return true;
}
代码示例来源:origin: redfish64/TinyTravelTracker
private boolean equivalentStrings(String s1, String s2)
{
String value = canonicalize(s1);
String oValue = canonicalize(s2);
if (!value.equals(oValue))
{
value = stripInternalSpaces(value);
oValue = stripInternalSpaces(oValue);
if (!value.equals(oValue))
{
return false;
}
}
return true;
}
代码示例来源:origin: redfish64/TinyTravelTracker
public int hashCode()
{
if (isHashCodeCalculated)
{
return hashCodeValue;
}
isHashCodeCalculated = true;
// this needs to be order independent, like equals
for (int i = 0; i != ordering.size(); i += 1)
{
String value = (String)values.elementAt(i);
value = canonicalize(value);
value = stripInternalSpaces(value);
hashCodeValue ^= ordering.elementAt(i).hashCode();
hashCodeValue ^= value.hashCode();
}
return hashCodeValue;
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public int hashCode()
{
if (isHashCodeCalculated)
{
return hashCodeValue;
}
isHashCodeCalculated = true;
// this needs to be order independent, like equals
for (int i = 0; i != ordering.size(); i += 1)
{
String value = (String)values.elementAt(i);
value = canonicalize(value);
value = stripInternalSpaces(value);
hashCodeValue ^= ordering.elementAt(i).hashCode();
hashCodeValue ^= value.hashCode();
}
return hashCodeValue;
}
内容来源于网络,如有侵权,请联系作者删除!