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

x33g5p2x  于11个月前 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(42)

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

ASN1OctetString.toString介绍

暂无

代码示例

代码示例来源:origin: igniterealtime/Spark

private String policyMappingsExtractor(X509Certificate cert) {
  ASN1OctetString oct = ASN1OctetString.getInstance(cert.getExtensionValue(Extension.policyMappings.toString()));
  return oct.toString();
}

代码示例来源:origin: org.demoiselle.signer/policy-engine

@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("===================================================").append("\n");
  builder.append(policyMessagesBundle.getString("text.next.update")).append(this.getNextUpdate().getDate()).append("\n");
  builder.append(policyMessagesBundle.getString("text.quantity")).append(this.getPolicyInfos().size()).append("\n");
  builder.append("===================================================");
  for (PolicyInfo policyInfo : this.getPolicyInfos()) {
    builder.append(policyMessagesBundle.getString("text.valid")).append(policyInfo.getSigningPeriod()).append("\n");
    builder.append(policyMessagesBundle.getString("text.oid")).append(policyInfo.getPolicyOID().getValue()).append("\n");
    builder.append(policyMessagesBundle.getString("text.uri")).append(policyInfo.getPolicyURI()).append("\n");
    builder.append(policyMessagesBundle.getString("text.algo.hash")).append(policyInfo.getPolicyDigest().getHashAlgorithm().getAlgorithm().getId()).append("\n");
    builder.append(policyMessagesBundle.getString("text.hash")).append(policyInfo.getPolicyDigest().getHashValue().toString()).append("\n");
    builder.append(policyMessagesBundle.getString("text.status"));
    GeneralizedTime revocationDate = policyInfo.getRevocationDate();
    if (revocationDate != null) {
      builder.append(policyMessagesBundle.getString("text.repealed")).append("\n");
      builder.append(policyMessagesBundle.getString("text.revocation.date")).append(revocationDate != null ? revocationDate.getDate() : policyMessagesBundle.getString("text.revocation.no.date")).append("\n");
    } else {
      builder.append(policyMessagesBundle.getString("text.still.valid")).append("\n");
    }
    builder.append("\t===================================================").append("\n");
  }
  return builder.toString();
}

代码示例来源:origin: org.icepdf.os/icepdf-core

logger.finest("EncapsulatedContentInfo Data " + eContent.toString());

相关文章