sun.security.mule.krb5.internal
Class KRBPriv

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

public class KRBPriv
extends Object

Implements the ASN.1 KRB-PRIV type.

KRB-PRIV ::= [APPLICATION 21] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (21), -- NOTE: there is no [2] tag enc-part [3] EncryptedData -- EncKrbPrivPart }

This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.


Field Summary
 EncryptedData encPart
           
 int msgType
           
 int pvno
           
 
Constructor Summary
KRBPriv(byte[] data)
           
KRBPriv(sun.security.util.DerValue encoding)
           
KRBPriv(EncryptedData new_encPart)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes an KRBPriv object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pvno

public int pvno

msgType

public int msgType

encPart

public EncryptedData encPart
Constructor Detail

KRBPriv

public KRBPriv(EncryptedData new_encPart)

KRBPriv

public KRBPriv(byte[] data)
        throws Asn1Exception,
               KrbApErrException,
               IOException
Throws:
Asn1Exception
KrbApErrException
IOException

KRBPriv

public KRBPriv(sun.security.util.DerValue encoding)
        throws Asn1Exception,
               KrbApErrException,
               IOException
Throws:
Asn1Exception
KrbApErrException
IOException
Method Detail

asn1Encode

public byte[] asn1Encode()
                  throws Asn1Exception,
                         IOException
Encodes an KRBPriv object.

Returns:
byte array of encoded EncAPRepPart object.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.


Copyright © 2013. All Rights Reserved.