public class

KRBSafe

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

Class Overview

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.

Summary

Fields
public Checksum cksum
public int msgType
public int pvno
public KRBSafeBody safeBody
Public Constructors
KRBSafe(KRBSafeBody new_safeBody, Checksum new_cksum)
KRBSafe(byte[] data)
KRBSafe(DerValue encoding)
Public Methods
byte[] asn1Encode()
Encodes an KRBSafe object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public Checksum cksum

public int msgType

public int pvno

public KRBSafeBody safeBody

Public Constructors

public KRBSafe (KRBSafeBody new_safeBody, Checksum new_cksum)

Parameters
new_safeBody
new_cksum

public KRBSafe (byte[] data)

Parameters
data

public KRBSafe (DerValue encoding)

Parameters
encoding

Public Methods

public byte[] asn1Encode ()

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.