Code example for Enumeration

Methods: nextElement

0
    public DigestInfo( 
        ASN1Sequence  obj)
    { 
        Enumeration             e = obj.getObjects();
 
        algId = AlgorithmIdentifier.getInstance(e.nextElement());
        digest = ASN1OctetString.getInstance(e.nextElement()).getOctets();
    } 
 
    public AlgorithmIdentifier getAlgorithmId() 
    { 
        return algId;
    } 
 
    public byte[] getDigest() 
    { 
        return digest;
    } 
 
    public ASN1Primitive toASN1Primitive() 
    {