org.bouncycastle.asn1.x509.AlgorithmIdentifier.getInstance()方法的使用及代码示例

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

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

AlgorithmIdentifier.getInstance介绍

暂无

代码示例

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

private EncryptionScheme(
  ASN1Sequence  seq)
{   
  this.algId = AlgorithmIdentifier.getInstance(seq);
}

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

public static AlgorithmIdentifier getInstance(
  ASN1TaggedObject obj,
  boolean          explicit)
{
  return getInstance(ASN1Sequence.getInstance(obj, explicit));
}

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

public DigestInfo(
  ASN1Sequence  obj)
{
  Enumeration             e = obj.getObjects();
  algId = AlgorithmIdentifier.getInstance(e.nextElement());
  digest = ASN1OctetString.getInstance(e.nextElement()).getOctets();
}

代码示例来源:origin: org.xwiki.commons/xwiki-commons-crypto-common

@Override
public Digest getInstance(byte[] encoded)
{
  AlgorithmIdentifier algId = AlgorithmIdentifier.getInstance(encoded);
  return getFactory(algId.getAlgorithm()).getInstance();
}

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

private PKMACValue(ASN1Sequence seq)
{
  algId = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  value = DERBitString.getInstance(seq.getObjectAt(1));
}

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

private EncryptedSecretKeyData(ASN1Sequence seq)
{
  this.keyEncryptionAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  this.encryptedKeyData = ASN1OctetString.getInstance(seq.getObjectAt(1));
}

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

private PKMACValue(ASN1Sequence seq)
{
  algId = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  value = DERBitString.getInstance(seq.getObjectAt(1));
}

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

private CertID(
  ASN1Sequence    seq)
{
  hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  issuerNameHash = (ASN1OctetString)seq.getObjectAt(1);
  issuerKeyHash = (ASN1OctetString)seq.getObjectAt(2);
  serialNumber = (ASN1Integer)seq.getObjectAt(3);
}

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

private MessageImprint(
  ASN1Sequence seq)
{
  this.hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  this.hashedMessage = ASN1OctetString.getInstance(seq.getObjectAt(1)).getOctets();
}

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

/**
 * @deprecated use getInstance()
 */
public CertificationRequest(
  ASN1Sequence seq)
{
  reqInfo = CertificationRequestInfo.getInstance(seq.getObjectAt(0));
  sigAlgId = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
  sigBits = (DERBitString)seq.getObjectAt(2);
}

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

public CertificationRequest(
  ASN1Sequence seq)
{
  reqInfo = CertificationRequestInfo.getInstance(seq.getObjectAt(0));
  sigAlgId = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
  sigBits = (DERBitString)seq.getObjectAt(2);
}

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

private MessageImprint(
  ASN1Sequence seq)
{
  this.hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  this.hashedMessage = ASN1OctetString.getInstance(seq.getObjectAt(1)).getOctets();
}

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

private CompressedData(
  ASN1Sequence seq)
{
  this.version = (ASN1Integer)seq.getObjectAt(0);
  this.compressionAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
  this.encapContentInfo = ContentInfo.getInstance(seq.getObjectAt(2));
}

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

private CMCPublicationInfo(ASN1Sequence seq)
{
  if (seq.size() != 3)
  {
    throw new IllegalArgumentException("incorrect sequence size");
  }
  this.hashAlg = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
  this.certHashes = ASN1Sequence.getInstance(seq.getObjectAt(1));
  this.pubInfo = PKIPublicationInfo.getInstance(seq.getObjectAt(2));
}

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

private PublishTrustAnchors(ASN1Sequence seq)
{
  if (seq.size() != 3)
  {
    throw new IllegalArgumentException("incorrect sequence size");
  }
  this.seqNumber = ASN1Integer.getInstance(seq.getObjectAt(0));
  this.hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
  this.anchorHashes = ASN1Sequence.getInstance(seq.getObjectAt(2));
}

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

private McElieceCCA2PublicKey(ASN1Sequence seq)
{
  BigInteger bigN = ((ASN1Integer)seq.getObjectAt(0)).getValue();
  n = bigN.intValue();
  BigInteger bigT = ((ASN1Integer)seq.getObjectAt(1)).getValue();
  t = bigT.intValue();
  g = new GF2Matrix(((ASN1OctetString)seq.getObjectAt(2)).getOctets());
  digest = AlgorithmIdentifier.getInstance(seq.getObjectAt(3));
}

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

private EncryptedPOP(ASN1Sequence seq)
{
  if (seq.size() != 5)
  {
    throw new IllegalArgumentException("incorrect sequence size");
  }
  this.request = TaggedRequest.getInstance(seq.getObjectAt(0));
  this.cms = ContentInfo.getInstance(seq.getObjectAt(1));
  this.thePOPAlgID = AlgorithmIdentifier.getInstance(seq.getObjectAt(2));
  this.witnessAlgID = AlgorithmIdentifier.getInstance(seq.getObjectAt(3));
  this.witness = Arrays.clone(ASN1OctetString.getInstance(seq.getObjectAt(4)).getOctets());
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-crypto-common

@Override
  public Digest getInstance(byte[] encoded)
  {
    AlgorithmIdentifier algId = AlgorithmIdentifier.getInstance(encoded);

    if (!algId.getAlgorithm().equals(getAlgorithmIdentifier().getAlgorithm())) {
      throw new IllegalArgumentException("Invalid algorithm identifier in encoded data for this digest factory: "
        + algId.getAlgorithm().getId());
    }

    return getInstance();
  }
}

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

public KEKRecipientInfo(
  ASN1Sequence seq)
{
  version = (ASN1Integer)seq.getObjectAt(0);
  kekid = KEKIdentifier.getInstance(seq.getObjectAt(1));
  keyEncryptionAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(2));
  encryptedKey = (ASN1OctetString)seq.getObjectAt(3);
}

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

private BasicOCSPResponse(
  ASN1Sequence    seq)
{
  this.tbsResponseData = ResponseData.getInstance(seq.getObjectAt(0));
  this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
  this.signature = (DERBitString)seq.getObjectAt(2);
  if (seq.size() > 3)
  {
    this.certs = ASN1Sequence.getInstance((ASN1TaggedObject)seq.getObjectAt(3), true);
  }
}

相关文章