com.ibm.security.krb5.internal

Class KRBCred

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

  1. public class KRBCred
  2. extends java.lang.Object
Implements the ASN.1 Authenticator type. KRB-CRED ::= [APPLICATION 22] SEQUENCE { pvno[0] INTEGER, msg-type[1] INTEGER, -- KRB_CRED tickets[2] SEQUENCE OF Ticket, enc-part[3] EncryptedData }

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. EncryptedData
encPart
  1. int
msgType
  1. int
pvno
  1. Ticket[]
tickets

Constructor Summary

Constructor and Description
KRBCred(byte[] data)
KRBCred(com.ibm.security.util.DerValue encoding)
KRBCred(Ticket[] new_tickets,EncryptedData new_encPart)

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode()
Encodes an KRBCred 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

tickets

  1. public Ticket[] tickets

encPart

  1. public EncryptedData encPart

Constructor Detail

KRBCred

  1. public KRBCred(Ticket[] new_tickets,
  2. EncryptedData new_encPart)

KRBCred

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

KRBCred

  1. public KRBCred(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 KRBCred object.
Returns:
the data of encoded EncAPRepPart 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.