public class

PAData

extends Object
java.lang.Object
   ↳ sun.security.mule.krb5.internal.PAData

Class Overview

Implements the ASN.1 PA-DATA type.

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.

Summary

Constants
byte TAG_PATYPE
byte TAG_PAVALUE
Fields
private int pADataType
private byte[] pADataValue
Public Constructors
PAData(int new_pADataType, byte[] new_pADataValue)
PAData(DerValue encoding)
Constructs a PAData object.
Public Methods
byte[] asn1Encode()
Encodes this object to an OutputStream.
Object clone()
int getType()
byte[] getValue()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final byte TAG_PATYPE

Constant Value: 1 (0x00000001)

private static final byte TAG_PAVALUE

Constant Value: 2 (0x00000002)

Fields

private int pADataType

private byte[] pADataValue

Public Constructors

public PAData (int new_pADataType, byte[] new_pADataValue)

Parameters
new_pADataType
new_pADataValue

public PAData (DerValue encoding)

Constructs a PAData object.

Parameters
encoding A Der-encoded data.
Throws
Asn1Exception if an error occurs while decoding an ASN1 encoded data.
IOException if an I/O error occurs while reading encoded data.

Public Methods

public byte[] asn1Encode ()

Encodes this object to an OutputStream.

Returns
  • byte array of the encoded data.
Throws
IOException if an I/O error occurs while reading encoded data.
Asn1Exception on encoding errors.

public Object clone ()

public int getType ()

public byte[] getValue ()