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

x33g5p2x  于2022-01-15 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(108)

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

ASN1OctetString.equals介绍

暂无

代码示例

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

public boolean equals(
  Object  o)
{
  if (!(o instanceof X509Extension))
  {
    return false;
  }
  X509Extension   other = (X509Extension)o;
  return other.getValue().equals(this.getValue())
    && (other.isCritical() == this.isCritical());
}

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

public boolean equals(
  Object  o)
{
  if (!(o instanceof X509Extension))
  {
    return false;
  }
  X509Extension   other = (X509Extension)o;
  return other.getValue().equals(this.getValue())
    && (other.isCritical() == this.isCritical());
}

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

public boolean equals(
  Object  o)
{
  if (!(o instanceof Extension))
  {
    return false;
  }
  Extension other = (Extension)o;
  return other.getExtnId().equals(this.getExtnId())
    && other.getExtnValue().equals(this.getExtnValue())
    && (other.isCritical() == this.isCritical());
}

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

public boolean equals(
  Object  o)
{
  if (!(o instanceof Extension))
  {
    return false;
  }
  Extension other = (Extension)o;
  return other.getExtnId().equals(this.getExtnId())
    && other.getExtnValue().equals(this.getExtnValue())
    && (other.isCritical() == this.isCritical());
}

代码示例来源:origin: xipki/xipki

PKIHeader respHeader = response.getHeader();
ASN1OctetString tid = reqHeader.getTransactionID();
if (!tid.equals(respHeader.getTransactionID())) {
 throw new Exception("response.transactionId != request.transactionId");
if (!senderNonce.equals(respHeader.getRecipNonce())) {
 throw new Exception("response.recipientNonce != request.senderNonce");

代码示例来源:origin: org.xipki/cmpclient

if (!tid.equals(respTid)) {
 LOG.warn("Response contains different tid ({}) than requested {}", respTid, tid);
 throw new CmpClientException("Response contains differnt tid than the request");
if (!senderNonce.equals(respRecipientNonce)) {
 LOG.warn("tid {}: response.recipientNonce ({}) != request.senderNonce ({})",
   tid, respRecipientNonce, senderNonce);

相关文章