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

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

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

ASN1ObjectIdentifier.getBody介绍

暂无

代码示例

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

int encodedLength()
  throws IOException
{
  int length = getBody().length;
  return 1 + StreamUtil.calculateBodyLength(length) + length;
}

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

int encodedLength()
  throws IOException
{
  int length = getBody().length;
  return 1 + StreamUtil.calculateBodyLength(length) + length;
}

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

/**
 * Intern will return a reference to a pooled version of this object, unless it
 * is not present in which case intern will add it.
 * <p>
 * The pool is also used by the ASN.1 parsers to limit the number of duplicated OID
 * objects in circulation.
 * </p>
 *
 * @return a reference to the identifier in the pool.
 */
public ASN1ObjectIdentifier intern()
{
  final OidHandle hdl = new OidHandle(getBody());
  ASN1ObjectIdentifier oid = pool.get(hdl);
  if (oid == null)
  {
    oid = pool.putIfAbsent(hdl, this);
    if (oid == null)
    {
      oid = this;
    }
  }
  return oid;
}

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

void encode(
  ASN1OutputStream out)
  throws IOException
{
  byte[] enc = getBody();
  out.write(BERTags.OBJECT_IDENTIFIER);
  out.writeLength(enc.length);
  out.write(enc);
}

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

void encode(
  ASN1OutputStream out)
  throws IOException
{
  byte[] enc = getBody();
  out.write(BERTags.OBJECT_IDENTIFIER);
  out.writeLength(enc.length);
  out.write(enc);
}

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

if (Arrays.areEqual(enc, possibleMatch.getBody()))
  if (Arrays.areEqual(enc, possibleMatch.getBody()))
if (Arrays.areEqual(enc, possibleMatch.getBody()))

相关文章