com.ibm.security.krb5.internal

Class Ticket

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.Ticket
All implemented interfaces:
java.lang.Cloneable

  1. public class Ticket
  2. extends java.lang.Object
  3. implements java.lang.Cloneable
Implements the ASN.1 Ticket type. Ticket ::= [APPLICATION 1] SEQUENCE { tkt-vno[0] INTEGER, realm[1] Realm, sname[2] PrincipalName, 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.


Constructor Summary

Constructor and Description
Ticket(byte[] data)
Ticket(com.ibm.security.util.DerValue encoding)
Ticket(Realm new_realm,PrincipalName new_sname,EncryptedData new_encPart)

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode()
Encodes a Ticket object.
  1. java.lang.Object
clone()
  1. EncryptedData
getEncryptedPart()
  1. Realm
getRealm()
  1. PrincipalName
getServer()
  1. int
getVersionNumber()
  1. static
  2. Ticket
parse(com.ibm.security.util.DerInputStream data,byte explicitTag,boolean optional)
Parse (unmarshal) a Ticket from a DER input stream.
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Ticket

  1. public Ticket(Realm new_realm,
  2. PrincipalName new_sname,
  3. EncryptedData new_encPart)

Ticket

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

Ticket

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

Method Detail

clone

  1. public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

asn1Encode

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. java.io.IOException
Encodes a Ticket object.
Returns:
byte array of encoded ticket 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.

parse

  1. public static Ticket parse(com.ibm.security.util.DerInputStream data,
  2. byte explicitTag,
  3. boolean optional)
  4. throws Asn1Exception
  5. java.io.IOException
  6. RealmException
  7. KrbApErrException
Parse (unmarshal) a Ticket from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
Parameters:
data - the Der input stream value, which contains one or more marshaled value.
explicitTag - tag number.
optional - indicate if this data field is optional
Returns:
an instance of Ticket.
Throws:
Asn1Exception - on error.
java.io.IOException

getVersionNumber

  1. public int getVersionNumber()

getRealm

  1. public Realm getRealm()

getServer

  1. public PrincipalName getServer( )

getEncryptedPart

  1. public EncryptedData getEncryptedPart( )