PA-DATA ::= SEQUENCE {
-- NOTE: first tag is [1], not [0]
padata-type [1] Int32,
padata-value [2] OCTET STRING -- might be encoded AP-REQ
}
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| Modifier and Type | Class and Description |
|---|---|
| public static class | PAData.
A place to store a pair of salt and s2kparams. |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private byte[] | |
| private static final byte | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public Object | |
| public static int | Returns: the etype, or defaultEType if not enough infoGets the preferred etype from the PAData array. |
| public static PAData. | Returns: salt and s2kparams. can be null if not foundFetches salt and s2kparams value for eType in a series of PA-DATAs. |
| public int | |
| public byte[] | |
| public static PAData[] | Returns: an array of PAData.the Der input stream value, which contains one or more
marshaled values. data, byte tag number. explicitTag, boolean indicates if this data field is optional. optional)Parse (unmarshal) a PAData from a DER input stream. |
| public String |
| pADataType | back to summary |
|---|---|
| private int pADataType | |
| pADataValue | back to summary |
|---|---|
| private byte[] pADataValue | |
| TAG_PATYPE | back to summary |
|---|---|
| private static final byte TAG_PATYPE | |
| TAG_PAVALUE | back to summary |
|---|---|
| private static final byte TAG_PAVALUE | |
| PAData | back to summary |
|---|---|
| private PAData() | |
| PAData | back to summary |
|---|---|
| public PAData(int new_pADataType, byte[] new_pADataValue) | |
| PAData | back to summary |
|---|---|
| public PAData(DerValue encoding) throws Asn1Exception, IOException Constructs a PAData object.
| |
| asn1Encode | back to summary |
|---|---|
| public byte[] asn1Encode() throws Asn1Exception, IOException Encodes this object to an OutputStream.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| getPreferredEType | back to summary |
|---|---|
| public static int getPreferredEType(PAData[] pas, int defaultEType) throws IOException, Asn1Exception Gets the preferred etype from the PAData array.
| |
| getSaltAndParams | back to summary |
|---|---|
| public static PAData. Fetches salt and s2kparams value for eType in a series of PA-DATAs. 1. ETYPE-INFO2-ENTRY with unknown s2kparams ignored 2. PA-ETYPE-INFO2 preferred to PA-ETYPE-INFO preferred to PA-PW-SALT. 3. multiple entries for same etype in one PA-DATA, use the first one. 4. Multiple PA-DATA with same type, choose the last one (This is useful when PA-DATAs from KRB-ERROR and AS-REP are combined).
| |
| getType | back to summary |
|---|---|
| public int getType() | |
| getValue | back to summary |
|---|---|
| public byte[] getValue() | |
| parseSequence | back to summary |
|---|---|
| public static PAData[] parseSequence(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException Parse (unmarshal) a PAData from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public final byte[] | |
| public final String |
| Access | Constructor and Description |
|---|---|
| public |
| params | back to summary |
|---|---|
| public final byte[] params | |
| salt | back to summary |
|---|---|
| public final String salt | |
| SaltAndParams | back to summary |
|---|---|
| public SaltAndParams(String s, byte[] p) | |