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

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

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

ASN1Sequence.getObjects介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

DERApplicationSpecific app = (DERApplicationSpecific) obj;
ASN1Sequence seq = (ASN1Sequence) app.getObject(BERTags.SEQUENCE);
Enumeration secEnum = seq.getObjects();
while (secEnum.hasMoreElements()) {
  ASN1Primitive seqObj = (ASN1Primitive) secEnum.nextElement();
  System.out.println(seqObj);
}

代码示例来源:origin: apache/pdfbox

Enumeration<?> objects = asn1Seq.getObjects();
while (objects.hasMoreElements())

代码示例来源:origin: apache/pdfbox

Enumeration<?> objects = asn1Seq.getObjects();

代码示例来源:origin: apache/pdfbox

Enumeration<?> objects = asn1Seq.getObjects();
while (objects.hasMoreElements())

代码示例来源:origin: apache/pdfbox

Enumeration<?> objects = asn1Seq.getObjects();
while (objects.hasMoreElements())

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

private ElGamalParameter(
  ASN1Sequence  seq)
{
  Enumeration     e = seq.getObjects();
  p = (ASN1Integer)e.nextElement();
  g = (ASN1Integer)e.nextElement();
}

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

private GOST28147Parameters(
  ASN1Sequence  seq)
{
  Enumeration     e = seq.getObjects();
  iv = (ASN1OctetString)e.nextElement();
  paramSet = (ASN1ObjectIdentifier)e.nextElement();
}

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

public KeySpecificInfo(
  ASN1Sequence  seq)
{
  Enumeration e = seq.getObjects();
  algorithm = (ASN1ObjectIdentifier)e.nextElement();
  counter = (ASN1OctetString)e.nextElement();
}

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

private ElGamalParameter(
  ASN1Sequence  seq)
{
  Enumeration     e = seq.getObjects();
  p = (ASN1Integer)e.nextElement();
  g = (ASN1Integer)e.nextElement();
}

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

public synchronized Enumeration getObjects()
{
  if (encoded == null)
  {
    return super.getObjects();
  }
  return new LazyConstructionEnumeration(encoded);
}

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

public static BEROctetString fromSequence(ASN1Sequence seq)
  {
    Vector      v = new Vector();
    Enumeration e = seq.getObjects();

    while (e.hasMoreElements())
    {
      v.addElement(e.nextElement());
    }

    return new BERConstructedOctetString(v);
  }
}

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

private CompleteRevocationRefs(ASN1Sequence seq)
{
  Enumeration seqEnum = seq.getObjects();
  while (seqEnum.hasMoreElements())
  {
    CrlOcspRef.getInstance(seqEnum.nextElement());
  }
  this.crlOcspRefs = seq;
}

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

public ProfessionInfo[] getProfessionInfos()
{
  ProfessionInfo[] infos = new ProfessionInfo[professionInfos.size()];
  int count = 0;
  for (Enumeration e = professionInfos.getObjects(); e.hasMoreElements();)
  {
    infos[count++] = ProfessionInfo.getInstance(e.nextElement());
  }
  return infos;
}

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

private MonetaryValue(
  ASN1Sequence seq)
{
  Enumeration e = seq.getObjects();    
  // currency
  currency = Iso4217CurrencyCode.getInstance(e.nextElement());
  // hashAlgorithm
  amount = ASN1Integer.getInstance(e.nextElement());
  // exponent
  exponent = ASN1Integer.getInstance(e.nextElement());            
}

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

public Enumeration getRevokedCertificateEnumeration()
{
  if (revokedCertificates == null)
  {
    return new EmptyEnumeration();
  }
  return new RevokedCertificatesEnumeration(revokedCertificates.getObjects());
}

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

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

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

private DSAParameter(
  ASN1Sequence  seq)
{
  if (seq.size() != 3)
  {
    throw new IllegalArgumentException("Bad sequence size: " + seq.size());
  }
  
  Enumeration     e = seq.getObjects();
  p = ASN1Integer.getInstance(e.nextElement());
  q = ASN1Integer.getInstance(e.nextElement());
  g = ASN1Integer.getInstance(e.nextElement());
}

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

private DSAParameter(
  ASN1Sequence  seq)
{
  if (seq.size() != 3)
  {
    throw new IllegalArgumentException("Bad sequence size: " + seq.size());
  }
  
  Enumeration     e = seq.getObjects();
  p = ASN1Integer.getInstance(e.nextElement());
  q = ASN1Integer.getInstance(e.nextElement());
  g = ASN1Integer.getInstance(e.nextElement());
}

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

private ArchiveTimeStampSequence(final ASN1Sequence sequence)
  throws IllegalArgumentException
{
  final ASN1EncodableVector vector = new ASN1EncodableVector();
  Enumeration objects = sequence.getObjects();
  while (objects.hasMoreElements())
  {
    vector.add(ArchiveTimeStampChain.getInstance(objects.nextElement()));
  }
  this.archiveTimeStampChains = new DERSequence(vector);
}

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

private RSAPublicKey(
  ASN1Sequence seq)
{
  if (seq.size() != 2)
  {
    throw new IllegalArgumentException("Bad sequence size: "
        + seq.size());
  }
  Enumeration e = seq.getObjects();
  modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue();
  publicExponent = ASN1Integer.getInstance(e.nextElement()).getPositiveValue();
}

相关文章