com.ibm.security.krb5.internal

Class KRBSafe

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.KRBSafe

  1. public class KRBSafe
  2. extends java.lang.Object
Implements the ASN.1 KRBSafe type. KRB-SAFE ::= [APPLICATION 20] SEQUENCE { pvno[0] INTEGER, msg-type[1] INTEGER, safe-body[2] KRB-SAFE-BODY, cksum[3] Checksum }

This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.


Field Summary

Modifier and Type Field and Description
  1. Checksum
cksum
  1. int
msgType
  1. int
pvno
  1. KRBSafeBody
safeBody

Constructor Summary

Constructor and Description
KRBSafe(byte[] data)
KRBSafe(com.ibm.security.util.DerValue encoding)
KRBSafe(KRBSafeBody new_safeBody,Checksum new_cksum)

Method Summary

Modifier and Type Method and Description
  1. 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

  1. public int pvno

msgType

  1. public int msgType

safeBody

  1. public KRBSafeBody safeBody

cksum

  1. public Checksum cksum

Constructor Detail

KRBSafe

  1. public KRBSafe(KRBSafeBody new_safeBody,
  2. Checksum new_cksum)

KRBSafe

  1. public KRBSafe(byte[] data)
  2. throws Asn1Exception
  3. RealmException
  4. KrbApErrException
  5. java.io.IOException
Throws:
java.io.IOException

KRBSafe

  1. public KRBSafe(com.ibm.security.util.DerValue encoding)
  2. throws Asn1Exception
  3. RealmException
  4. KrbApErrException
  5. java.io.IOException
Throws:
java.io.IOException

Method Detail

asn1Encode

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. java.io.IOException
Encodes an KRBSafe object.
Returns:
byte array of encoded KRBSafe object.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
java.io.IOException - if an I/O error occurs while reading encoded data.