org.spongycastle.asn1.ASN1Primitive.equals()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(102)

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

ASN1Primitive.equals介绍

暂无

代码示例

代码示例来源:origin: com.madgag.spongycastle/pkix

public boolean equals(
  Object  o)
{
  if (!(o instanceof CertificateID))
  {
    return false;
  }
  CertificateID obj = (CertificateID)o;
  return id.toASN1Primitive().equals(obj.id.toASN1Primitive());
}

代码示例来源:origin: com.madgag.spongycastle/bcpkix-jdk15on

public boolean equals(
  Object  o)
{
  if (!(o instanceof CertificateID))
  {
    return false;
  }
  CertificateID obj = (CertificateID)o;
  return id.toASN1Primitive().equals(obj.id.toASN1Primitive());
}

代码示例来源:origin: com.madgag.spongycastle/core

if (other.dataValueDescriptor == null || !other.dataValueDescriptor.equals(dataValueDescriptor))
return externalContent.equals(other.externalContent);

代码示例来源:origin: com.madgag/scprov-jdk15on

public boolean equals(
  Object  o)
{
  if (!(o instanceof CertificateID))
  {
    return false;
  }
  CertificateID   obj = (CertificateID)o;
  return id.toASN1Primitive().equals(obj.id.toASN1Primitive());
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

if (other.dataValueDescriptor == null || !other.dataValueDescriptor.equals(dataValueDescriptor))
return externalContent.equals(other.externalContent);

代码示例来源:origin: com.madgag.spongycastle/core

public boolean equals(
  Object  o)
{
  if (this == o)
  {
    return true;
  }
  if (!(o instanceof ASN1Encodable))
  {
    return false;
  }
  ASN1Encodable other = (ASN1Encodable)o;
  return this.toASN1Primitive().equals(other.toASN1Primitive());
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

public boolean equals(
  Object  o)
{
  if (this == o)
  {
    return true;
  }
  if (!(o instanceof ASN1Encodable))
  {
    return false;
  }
  ASN1Encodable other = (ASN1Encodable)o;
  return this.toASN1Primitive().equals(other.toASN1Primitive());
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

if (!(obj.toASN1Primitive().equals(other.obj.toASN1Primitive())))

代码示例来源:origin: com.madgag.spongycastle/core

if (!(obj.toASN1Primitive().equals(other.obj.toASN1Primitive())))

代码示例来源:origin: com.madgag.spongycastle/core

if (this.toASN1Primitive().equals(derO))

代码示例来源:origin: com.madgag/sc-light-jdk15on

if (this.toASN1Primitive().equals(derO))

代码示例来源:origin: com.madgag.spongycastle/core

if (this.toASN1Primitive().equals(derO))

代码示例来源:origin: com.madgag/sc-light-jdk15on

if (this.toASN1Primitive().equals(derO))

代码示例来源:origin: com.madgag.spongycastle/core

boolean asn1Equals(
  ASN1Primitive o)
{
  if (!(o instanceof ASN1Set))
  {
    return false;
  }
  ASN1Set   other = (ASN1Set)o;
  if (this.size() != other.size())
  {
    return false;
  }
  Enumeration s1 = this.getObjects();
  Enumeration s2 = other.getObjects();
  while (s1.hasMoreElements())
  {
    ASN1Encodable obj1 = getNext(s1);
    ASN1Encodable obj2 = getNext(s2);
    ASN1Primitive o1 = obj1.toASN1Primitive();
    ASN1Primitive o2 = obj2.toASN1Primitive();
    if (o1 == o2 || o1.equals(o2))
    {
      continue;
    }
    return false;
  }
  return true;
}

代码示例来源:origin: com.madgag.spongycastle/core

/**
 * test for equality - note: case is ignored.
 */
public boolean equals(Object obj)
{
  if (obj == this)
  {
    return true;
  }
  if (!(obj instanceof X500Name || obj instanceof ASN1Sequence))
  {
    return false;
  }
  
  ASN1Primitive derO = ((ASN1Encodable)obj).toASN1Primitive();
  if (this.toASN1Primitive().equals(derO))
  {
    return true;
  }
  try
  {
    return style.areEqual(this, new X500Name(ASN1Sequence.getInstance(((ASN1Encodable)obj).toASN1Primitive())));
  }
  catch (Exception e)
  {
    return false;
  }
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

/**
 * test for equality - note: case is ignored.
 */
public boolean equals(Object obj)
{
  if (obj == this)
  {
    return true;
  }
  if (!(obj instanceof X500Name || obj instanceof ASN1Sequence))
  {
    return false;
  }
  
  ASN1Primitive derO = ((ASN1Encodable)obj).toASN1Primitive();
  if (this.toASN1Primitive().equals(derO))
  {
    return true;
  }
  try
  {
    return style.areEqual(this, new X500Name(ASN1Sequence.getInstance(((ASN1Encodable)obj).toASN1Primitive())));
  }
  catch (Exception e)
  {
    return false;
  }
}

代码示例来源:origin: com.madgag.spongycastle/core

boolean asn1Equals(
  ASN1Primitive o)
{
  if (!(o instanceof ASN1Sequence))
  {
    return false;
  }
  
  ASN1Sequence   other = (ASN1Sequence)o;
  if (this.size() != other.size())
  {
    return false;
  }
  Enumeration s1 = this.getObjects();
  Enumeration s2 = other.getObjects();
  while (s1.hasMoreElements())
  {
    ASN1Encodable obj1 = getNext(s1);
    ASN1Encodable obj2 = getNext(s2);
    ASN1Primitive o1 = obj1.toASN1Primitive();
    ASN1Primitive o2 = obj2.toASN1Primitive();
    if (o1 == o2 || o1.equals(o2))
    {
      continue;
    }
    return false;
  }
  return true;
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

boolean asn1Equals(
  ASN1Primitive o)
{
  if (!(o instanceof ASN1Set))
  {
    return false;
  }
  ASN1Set   other = (ASN1Set)o;
  if (this.size() != other.size())
  {
    return false;
  }
  Enumeration s1 = this.getObjects();
  Enumeration s2 = other.getObjects();
  while (s1.hasMoreElements())
  {
    ASN1Encodable obj1 = getNext(s1);
    ASN1Encodable obj2 = getNext(s2);
    ASN1Primitive o1 = obj1.toASN1Primitive();
    ASN1Primitive o2 = obj2.toASN1Primitive();
    if (o1 == o2 || o1.equals(o2))
    {
      continue;
    }
    return false;
  }
  return true;
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

boolean asn1Equals(
  ASN1Primitive o)
{
  if (!(o instanceof ASN1Sequence))
  {
    return false;
  }
  
  ASN1Sequence   other = (ASN1Sequence)o;
  if (this.size() != other.size())
  {
    return false;
  }
  Enumeration s1 = this.getObjects();
  Enumeration s2 = other.getObjects();
  while (s1.hasMoreElements())
  {
    ASN1Encodable obj1 = getNext(s1);
    ASN1Encodable obj2 = getNext(s2);
    ASN1Primitive o1 = obj1.toASN1Primitive();
    ASN1Primitive o2 = obj2.toASN1Primitive();
    if (o1 == o2 || o1.equals(o2))
    {
      continue;
    }
    return false;
  }
  return true;
}

代码示例来源:origin: com.madgag.spongycastle/prov

if (!completeKeyIdentifier.equals(deltaKeyIdentifier))

相关文章