sun.security.mule.krb5.internal
Class KRBSafe

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

public class KRBSafe
extends Object

Implements the ASN.1 KRBSafe type.

KRB-SAFE ::= [APPLICATION 20] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (20), safe-body [2] KRB-SAFE-BODY, cksum [3] Checksum }

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


Field Summary
 Checksum cksum
           
 int msgType
           
 int pvno
           
 KRBSafeBody safeBody
           
 
Constructor Summary
KRBSafe(byte[] data)
           
KRBSafe(sun.security.util.DerValue encoding)
           
KRBSafe(KRBSafeBody new_safeBody, Checksum new_cksum)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes an KRBSafe 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

safeBody

public KRBSafeBody safeBody

cksum

public Checksum cksum
Constructor Detail

KRBSafe

public KRBSafe(KRBSafeBody new_safeBody,
               Checksum new_cksum)

KRBSafe

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

KRBSafe

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

asn1Encode

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

Returns:
byte array of encoded KRBSafe 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.