codec.pkcs12
Class MacData

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--codec.asn1.ASN1AbstractCollection
                          |
                          +--codec.asn1.ASN1Sequence
                                |
                                +--codec.pkcs12.MacData
All Implemented Interfaces:
ASN1Collection, ASN1Type, Cloneable, Collection, Externalizable, List, Serializable

public class MacData
extends ASN1Sequence
implements Serializable

This class represents a MacData as defined in PKCS#12. The ASN.1 definition of this structure is

  MacData::= SEQUENCE {
   mac         DigestInfo,
   macSalt     OCTET STRING,
   iterations  INTEGER DEFAULT 1
   }
 

PFX

Version:
"$Id: MacData.java,v 1.3 2003/01/28 04:46:06 jpeters Exp $"
Author:
Michele Boivin, Markus Tak
See Also:
Serialized Form

Field Summary
protected  ASN1Integer iter_
          the number of iterations
protected  DigestInfo mac_
          The mac data
protected  ASN1OctetString macSalt_
          the salt used to produce the mac key
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MacData()
          Default constructor.
MacData(DigestInfo digest, byte[] salt, int it)
          Constructor upon input data
 
Method Summary
 int getIterationCount()
           
 DigestInfo getMacData()
           
 byte[] getSalt()
           
 
Methods inherited from class codec.asn1.ASN1Sequence
getTag
 
Methods inherited from class codec.asn1.ASN1AbstractCollection
checkConstraints, decode, encode, getCollection, getConstraint, getTagClass, getValue, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, toString, writeExternal
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

mac_

protected DigestInfo mac_
The mac data

macSalt_

protected ASN1OctetString macSalt_
the salt used to produce the mac key

iter_

protected ASN1Integer iter_
the number of iterations
Constructor Detail

MacData

public MacData()
Default constructor. Builds up the ASN.1 structure

MacData

public MacData(DigestInfo digest,
               byte[] salt,
               int it)
Constructor upon input data
Method Detail

getIterationCount

public int getIterationCount()

getMacData

public DigestInfo getMacData()

getSalt

public byte[] getSalt()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.