if (obj instanceof MacData)
{
return (MacData)obj;
}
else if (obj instanceof ASN1Sequence)
{
return new MacData((ASN1Sequence)obj);
}
throw new IllegalArgumentException("unknown object in factory");
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(digInfo);
v.add(new DEROctetString(salt));
v.add(new DERInteger(iterationCount));
return new DERSequence(v);