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

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

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

ASN1Sequence.toDLObject介绍

[英]Change current SEQUENCE object to be encoded as DLSequence. This is part of Direct Length form serialization.
[中]将当前序列对象更改为DLSequence编码。这是直接长度表单序列化的一部分。

代码示例

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

ASN1Primitive toDLObject()
{
  if (encoded != null)
  {
    parse();
  }
  return super.toDLObject();
}

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

ASN1Primitive toDLObject()
{
  if (encoded != null)
  {
    parse();
  }
  return super.toDLObject();
}

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

int encodedLength()
  throws IOException
{
  if (encoded != null)
  {
    return 1 + StreamUtil.calculateBodyLength(encoded.length) + encoded.length;
  }
  else
  {
    return super.toDLObject().encodedLength();
  }
}

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

int encodedLength()
  throws IOException
{
  if (encoded != null)
  {
    return 1 + StreamUtil.calculateBodyLength(encoded.length) + encoded.length;
  }
  else
  {
    return super.toDLObject().encodedLength();
  }
}

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

void encode(
    ASN1OutputStream out)
    throws IOException
  {
    if (encoded != null)
    {
      out.writeEncoded(BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded);
    }
    else
    {
      super.toDLObject().encode(out);
    }
  }
}

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

void encode(
    ASN1OutputStream out)
    throws IOException
  {
    if (encoded != null)
    {
      out.writeEncoded(BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded);
    }
    else
    {
      super.toDLObject().encode(out);
    }
  }
}

相关文章