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
|
Constructor Summary |
MacData()
Default constructor. |
MacData(DigestInfo digest,
byte[] salt,
int it)
Constructor upon input data |
| 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 interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
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
MacData
public MacData()
- Default constructor. Builds up the ASN.1 structure
MacData
public MacData(DigestInfo digest,
byte[] salt,
int it)
- Constructor upon input data
getIterationCount
public int getIterationCount()
getMacData
public DigestInfo getMacData()
getSalt
public byte[] getSalt()
Copyright © Fraunhofer Gesellschaft. All Rights Reserved.