本文整理了Java中org.spongycastle.asn1.ASN1ObjectIdentifier.getBody()
方法的一些代码示例,展示了ASN1ObjectIdentifier.getBody()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ASN1ObjectIdentifier.getBody()
方法的具体详情如下:
包路径:org.spongycastle.asn1.ASN1ObjectIdentifier
类名称:ASN1ObjectIdentifier
方法名:getBody
暂无
代码示例来源:origin: com.madgag.spongycastle/core
int encodedLength()
throws IOException
{
int length = getBody().length;
return 1 + StreamUtil.calculateBodyLength(length) + length;
}
代码示例来源:origin: com.madgag.spongycastle/core
/**
* 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: com.madgag.spongycastle/core
void encode(
ASN1OutputStream out)
throws IOException
{
byte[] enc = getBody();
out.write(BERTags.OBJECT_IDENTIFIER);
out.writeLength(enc.length);
out.write(enc);
}
代码示例来源:origin: com.madgag/sc-light-jdk15on
if (Arrays.areEqual(enc, possibleMatch.getBody()))
if (Arrays.areEqual(enc, possibleMatch.getBody()))
if (Arrays.areEqual(enc, possibleMatch.getBody()))
内容来源于网络,如有侵权,请联系作者删除!