public MacData( ASN1Sequence seq) { this.digInfo = DigestInfo.getInstance(seq.getObjectAt(0)); this.salt = ((ASN1OctetString)seq.getObjectAt(1)).getOctets(); if (seq.size() == 3) { this.iterationCount = ((DERInteger)seq.getObjectAt(2)).getValue(); } else { this.iterationCount = BigInteger.valueOf(1); } }