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

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

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

ASN1ObjectIdentifier.<init>介绍

[英]Create an OID based on the passed in String.
[中]

代码示例

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

/**
 * Return an OID that creates a branch under the current one.
 *
 * @param branchID node numbers for the new branch.
 * @return the OID for the new created branch.
 */
public ASN1ObjectIdentifier branch(String branchID)
{
  return new ASN1ObjectIdentifier(this, branchID);
}

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

public AttributeTypeAndValue(
  String oid,
  ASN1Encodable value)
{
  this(new ASN1ObjectIdentifier(oid), value);
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

public AttributeTypeAndValue(
  String oid,
  ASN1Encodable value)
{
  this(new ASN1ObjectIdentifier(oid), value);
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-cms-enveloper

/** M&eacute;todo que devuelve el Identificador del algoritmo.
 * @param oid OID del algoritmo a idenfiticar
 * @return Identificador del algoritmo formateado y listo para introducir
 *         en el cms. */
static AlgorithmIdentifier makeAlgId(final String oid) {
  return new AlgorithmIdentifier(new ASN1ObjectIdentifier(oid), DERNull.INSTANCE);
}

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

/**
 * add a given extension field for the standard extensions tag (tag 0)
 */
public void addExtension(
  String          oid,
  boolean         critical,
  byte[]          value)
{
  this.addExtension(new ASN1ObjectIdentifier(oid), critical, value);
}

代码示例来源: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/bcpkix-jdk15on

/**
 * Set the mapping for the encryption algorithm used in association with a SignedData generation
 * or interpretation.
 *
 * @param oid object identifier to map.
 * @param algorithmName algorithm name to use.
 */
public static void setSigningEncryptionAlgorithmMapping(String oid, String algorithmName)
{
  ASN1ObjectIdentifier id = new ASN1ObjectIdentifier(oid);
  CMSSignedHelper.INSTANCE.setSigningEncryptionAlgorithmMapping(id, algorithmName);
}

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

/**
 * add a given extension field for the standard extensions tag (tag 3)
 */
public void addExtension(
  String          oid,
  boolean         critical,
  ASN1Encodable    value)
{
  this.addExtension(new ASN1ObjectIdentifier(oid), critical, value);
}

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

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

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

/**
 * add a given extension field for the standard extensions tag
 * @throws IOException
 */
public void addExtension(
  String          oid,
  boolean         critical,
  ASN1Encodable   value)
  throws IOException
{
  extGenerator.addExtension(new ASN1ObjectIdentifier(oid), critical, value);
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

/**
 * @deprecated use ASN1ObjectIdentifier
 */
public ContentHints(
  DERObjectIdentifier contentType)
{
  this(new ASN1ObjectIdentifier(contentType.getId()));
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

/**
 * @deprecated use ASN1ObjectIdentifier
 * @param objectId
 */
public AlgorithmIdentifier(
  DERObjectIdentifier    objectId)
{
  this.objectId = new ASN1ObjectIdentifier(objectId.getId());
}

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

static ASN1ObjectIdentifier getAlgorithmOID(
  String algorithmName)
{
  algorithmName = Strings.toUpperCase(algorithmName);
  
  if (algorithms.containsKey(algorithmName))
  {
    return (ASN1ObjectIdentifier)algorithms.get(algorithmName);
  }
  
  return new ASN1ObjectIdentifier(algorithmName);
}

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

/**
 * add a given extension field for the standard extensions tag (tag 3)
 * The value parameter becomes the contents of the octet string associated
 * with the extension.
 */
public void addExtension(
  String          oid,
  boolean         critical,
  byte[]          value)
{
  this.addExtension(new ASN1ObjectIdentifier(oid), critical, value);
}

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

static ASN1ObjectIdentifier fromOctetString(byte[] enc)
  {
    final OidHandle hdl = new OidHandle(enc);
    ASN1ObjectIdentifier oid = pool.get(hdl);
    if (oid == null)
    {
      return new ASN1ObjectIdentifier(enc);
    }
    return oid;
  }
}

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

/**
 * add a given extension field for the standard extensions tag (tag 3)
 */
public void addExtension(
  DERObjectIdentifier oid,
  boolean             critical,
  ASN1Encodable        value)
{
  extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical,  value);
}

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

/**
 * add a given extension field for the standard extensions tag (tag 3)
 */
public void addExtension(
  DERObjectIdentifier oid,
  boolean             critical,
  byte[]              value)
{
  extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value);
}

代码示例来源:origin: com.madgag/sc-light-jdk15on

/**
 * @deprecated use ASN1ObjectIdentifier
 */
public ASN1EncodableVector getAll(DERObjectIdentifier oid)
{
  return getAll(new ASN1ObjectIdentifier(oid.getId()));
}

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

/**
 * add a given extension field for the standard extensions tag (tag 0)
 */
public void addExtension(
  ASN1ObjectIdentifier oid,
  boolean             critical,
  byte[]              value)
{
  extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value);
}

相关文章