sun.security.mule.krb5.internal
Class PAData

java.lang.Object
  extended by sun.security.mule.krb5.internal.PAData

public class PAData
extends Object

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.


Constructor Summary
PAData(sun.security.util.DerValue encoding)
          Constructs a PAData object.
PAData(int new_pADataType, byte[] new_pADataValue)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes this object to an OutputStream.
 Object clone()
           
 int getType()
           
 byte[] getValue()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PAData

public PAData(int new_pADataType,
              byte[] new_pADataValue)

PAData

public PAData(sun.security.util.DerValue encoding)
       throws Asn1Exception,
              IOException
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.
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

asn1Encode

public byte[] asn1Encode()
                  throws Asn1Exception,
                         IOException
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.

getType

public int getType()

getValue

public byte[] getValue()


Copyright © 2013. All Rights Reserved.