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

x33g5p2x  于2022-01-16 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(94)

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

ASN1ObjectIdentifier.getId介绍

[英]Return the OID as a string.
[中]将OID作为字符串返回。

代码示例

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * Return the a string representation of the OID associated with the
 * encapsulated content info structure carried in the signed data.
 * 
 * @return the OID for the content type.
 */
public String getSignedContentTypeOID()
{
  return _signedContentType.getId();
}

代码示例来源:origin: com.madgag.spongycastle/pkix

public String getAlgorithmName(ASN1ObjectIdentifier objectIdentifier)
{
  String name = (String)algorithms.get(objectIdentifier);
  return (name != null) ? name : objectIdentifier.getId();
}

代码示例来源:origin: com.madgag.spongycastle/pkix

String getKeyAlgorithmName(ASN1ObjectIdentifier oid)
  {

    String name = (String)symmetricKeyAlgNames.get(oid);

    if (name != null)
    {
      return name;
    }

    return oid.getId();
  }
}

代码示例来源:origin: com.madgag.spongycastle/bcpkix-jdk15on

String getBaseCipherName(ASN1ObjectIdentifier algorithm)
{
  String name = (String)BASE_CIPHER_NAMES.get(algorithm);
  if (name == null)
  {
    return algorithm.getId();
  }
  return name;
}

代码示例来源:origin: com.madgag.spongycastle/pkix

String getBaseCipherName(ASN1ObjectIdentifier algorithm)
{
  String name = (String)BASE_CIPHER_NAMES.get(algorithm);
  if (name == null)
  {
    return algorithm.getId();
  }
  return name;
}

代码示例来源:origin: com.madgag.spongycastle/pkix

private static void addEntries(ASN1ObjectIdentifier alias, String digest, String encryption)
{
  digestAlgs.put(alias.getId(), digest);
  encryptionAlgs.put(alias.getId(), encryption);
}

代码示例来源:origin: com.madgag.spongycastle/prov

private void addAlias(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name)
  {
    provider.addAlgorithm("Alg.Alias.KeyGenerator." + oid.getId(), name);
    provider.addAlgorithm("Alg.Alias.KeyFactory." + oid.getId(), name);
  }
}

代码示例来源:origin: com.madgag.spongycastle/prov

private static boolean isDeltaCRL(X509CRL crl)
{
  Set critical = crl.getCriticalExtensionOIDs();
  if (critical == null)
  {
    return false;
  }
  return critical.contains(Extension.deltaCRLIndicator.getId());
}

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * return the object identifier for the key encryption algorithm.
 *
 * @return OID for key encryption algorithm.
 */
public String getKeyEncryptionAlgOID()
{
  return keyEncAlg.getAlgorithm().getId();
}

代码示例来源:origin: com.madgag.spongycastle/pkix

public CMSProcessableByteArray(
  byte[]  bytes)
{
  this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), bytes);
}

代码示例来源:origin: com.madgag.spongycastle/pkix

public CMSProcessableFile(
  File file,
  int  bufSize)
{
  this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), file, bufSize);
}

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * return the object identifier for the signature.
 */
public String getEncryptionAlgOID()
{
  return encryptionAlgorithm.getAlgorithm().getId();
}

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * return the object identifier for the content encryption algorithm.
 */
public String getEncryptionAlgOID()
{
  return encAlg.getAlgorithm().getId();
}

代码示例来源:origin: com.madgag.spongycastle/pkix

public CMSTypedStream(
   String oid,
   InputStream in)
{
  this(new ASN1ObjectIdentifier(oid), in, BUF_SIZ);
}

代码示例来源:origin: com.madgag.spongycastle/prov

public static Collection getIssuerAlternativeNames(X509Certificate cert)
    throws CertificateParsingException
{
  byte[] extVal = cert.getExtensionValue(X509Extension.issuerAlternativeName.getId());
  return getAlternativeNames(extVal);
}

代码示例来源:origin: com.madgag.spongycastle/prov

public static Collection getSubjectAlternativeNames(X509Certificate cert)
    throws CertificateParsingException
{        
  byte[] extVal = cert.getExtensionValue(X509Extension.subjectAlternativeName.getId());
  return getAlternativeNames(extVal);
}

代码示例来源:origin: com.madgag.spongycastle/prov

public Collection getIssuerAlternativeNames()
  throws CertificateParsingException
{
  return getAlternativeNames(getExtensionBytes(Extension.issuerAlternativeName.getId()));
}

代码示例来源:origin: com.madgag.spongycastle/prov

public Collection getSubjectAlternativeNames()
  throws CertificateParsingException
{
  return getAlternativeNames(getExtensionBytes(Extension.subjectAlternativeName.getId()));
}

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * Return the a string representation of the OID associated with the
 * encapsulated content info structure carried in the signed data.
 * 
 * @return the OID for the content type.
 */
public String getSignedContentTypeOID()
{
  return signedData.getEncapContentInfo().getContentType().getId();
}

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * generate an enveloped object that contains an CMS Enveloped Data
 * object using the given encryptor.
 */
public OutputStream open(
  OutputStream    out,
  OutputEncryptor encryptor)
  throws CMSException, IOException
{
  return doOpen(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), out, encryptor);
}

相关文章