本文整理了Java中java.security.cert.X509Certificate.hashCode()
方法的一些代码示例,展示了X509Certificate.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509Certificate.hashCode()
方法的具体详情如下:
包路径:java.security.cert.X509Certificate
类名称:X509Certificate
方法名:hashCode
暂无
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public synchronized int hashCode()
{
if (!hashValueSet)
{
hashValue = super.hashCode();
hashValueSet = true;
}
return hashValue;
}
代码示例来源:origin: org.nhind/agent
@Override
/**
* {@inheritDoc}
*/
public int hashCode()
{
return internalCert.hashCode() ;
}
代码示例来源:origin: org.conscrypt/conscrypt-openjdk
@Override
public int hashCode() {
if (mHashCode != null) {
return mHashCode;
}
mHashCode = super.hashCode();
return mHashCode;
}
代码示例来源:origin: org.xipki.tk/security
@Override
public int hashCode() {
return cert.hashCode();
}
代码示例来源:origin: com.madgag.spongycastle/prov
public synchronized int hashCode()
{
if (!hashValueSet)
{
hashValue = super.hashCode();
hashValueSet = true;
}
return hashValue;
}
代码示例来源:origin: org.conscrypt/conscrypt-openjdk-uber
@Override
public int hashCode() {
if (mHashCode != null) {
return mHashCode;
}
mHashCode = super.hashCode();
return mHashCode;
}
代码示例来源:origin: org.xipki/security
@Override
public int hashCode() {
return cert.hashCode();
}
代码示例来源:origin: arhs/sd-dss
@Override
public int hashCode() {
return x509Certificate.hashCode();
}
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public int hashCode()
{
int hash = -1;
if (forward != null)
{
hash ^= forward.hashCode();
}
if (reverse != null)
{
hash *= 17;
hash ^= reverse.hashCode();
}
return hash;
}
}
代码示例来源:origin: ripple-unmaintained/ripple-lib-java
public int hashCode()
{
int hash = -1;
if (forward != null)
{
hash ^= forward.hashCode();
}
if (reverse != null)
{
hash *= 17;
hash ^= reverse.hashCode();
}
return hash;
}
}
代码示例来源:origin: no.difi.vefa/peppol-common
@Override
public int hashCode() {
int result = content.hashCode();
result = 31 * result + certificate.hashCode();
result = 31 * result + (timestamp != null ? timestamp.hashCode() : 0);
return result;
}
代码示例来源:origin: org.jclouds.api/chef
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((certificate == null) ? 0 : certificate.hashCode());
result = prime * result + ((clientname == null) ? 0 : clientname.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((orgname == null) ? 0 : orgname.hashCode());
result = prime * result + ((privateKey == null) ? 0 : privateKey.hashCode());
result = prime * result + (validator ? 1231 : 1237);
return result;
}
代码示例来源:origin: jclouds/legacy-jclouds-chef
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((certificate == null) ? 0 : certificate.hashCode());
result = prime * result + ((clientname == null) ? 0 : clientname.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((orgname == null) ? 0 : orgname.hashCode());
result = prime * result + ((privateKey == null) ? 0 : privateKey.hashCode());
result = prime * result + (validator ? 1231 : 1237);
return result;
}
代码示例来源:origin: apache/jclouds
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((certificate == null) ? 0 : certificate.hashCode());
result = prime * result + ((clientname == null) ? 0 : clientname.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((orgname == null) ? 0 : orgname.hashCode());
result = prime * result + ((privateKey == null) ? 0 : privateKey.hashCode());
result = prime * result + ((publicKey == null) ? 0 : publicKey.hashCode());
result = prime * result + (validator ? 1231 : 1237);
return result;
}
代码示例来源:origin: org.apache.jclouds.api/chef
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((certificate == null) ? 0 : certificate.hashCode());
result = prime * result + ((clientname == null) ? 0 : clientname.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((orgname == null) ? 0 : orgname.hashCode());
result = prime * result + ((privateKey == null) ? 0 : privateKey.hashCode());
result = prime * result + ((publicKey == null) ? 0 : publicKey.hashCode());
result = prime * result + (validator ? 1231 : 1237);
return result;
}
代码示例来源:origin: eu.eu-emi.security/canl
@Override
public int hashCode()
{
return getTrustedCert().hashCode();
}
}
代码示例来源:origin: oracle/oci-java-sdk
@Override
public int hashCode() {
return delegate().hashCode();
}
代码示例来源:origin: es.gob.afirma/afirma-keystores-capiaddressbook
KeyEntry(final String alias, final X509Certificate[] chain) {
this.certChain = chain.clone();
/*
* The default alias for both entry types is derived from a hash
* value intrinsic to the first certificate in the chain.
*/
if (alias == null) {
this.alias = Integer.toString(this.certChain[0].hashCode());
}
else {
this.alias = alias;
}
}
代码示例来源:origin: matburt/mobileorg-android
public void checkServerTrusted(X509Certificate[] chain,
String authType) throws CertificateException {
for (int i = 0; i < chain.length; i++) {
String descr = chain[i].toString();
int hash = chain[i].hashCode();
if (!this.validateCertificate(hash, descr)) {
throw new CertificateException("Conflicting certificate found with hash " +
Integer.toString(hash));
}
}
}
代码示例来源:origin: org.eclipse.milo/stack-server
@Override
public int hashCode() {
int result = endpointUri.hashCode();
result = 31 * result + securityPolicy.hashCode();
result = 31 * result + messageSecurity.hashCode();
result = 31 * result + (certificate != null ? certificate.hashCode() : 0);
result = 31 * result + (bindAddress != null ? bindAddress.hashCode() : 0);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!