org.apache.directory.server.kerberos.shared.io.decoder
Class TicketDecoder

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.io.decoder.TicketDecoder

public class TicketDecoder
extends java.lang.Object

Version:
$Rev: 589780 $, $Date: 2007-10-29 19:14:59 +0100 (Mon, 29 Oct 2007) $
Author:
Apache Directory Project

Constructor Summary
TicketDecoder()
           
 
Method Summary
static Ticket decode(byte[] encodedTicket)
          Decodes a byte array into an Ticket.
protected static Ticket decode(org.apache.directory.shared.asn1.der.DERApplicationSpecific app)
          Ticket ::= [APPLICATION 1] SEQUENCE { tkt-vno[0] INTEGER, realm[1] Realm, sname[2] PrincipalName, enc-part[3] EncryptedData }
static Ticket[] decodeSequence(org.apache.directory.shared.asn1.der.DERSequence sequence)
          Decodes a DERSequence into an array of Tickets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicketDecoder

public TicketDecoder()
Method Detail

decode

public static Ticket decode(byte[] encodedTicket)
                     throws java.io.IOException
Decodes a byte array into an Ticket.

Parameters:
encodedTicket -
Returns:
The Ticket.
Throws:
java.io.IOException

decodeSequence

public static Ticket[] decodeSequence(org.apache.directory.shared.asn1.der.DERSequence sequence)
                               throws java.io.IOException
Decodes a DERSequence into an array of Tickets.

Parameters:
sequence -
Returns:
The array of Tickets.
Throws:
java.io.IOException

decode

protected static Ticket decode(org.apache.directory.shared.asn1.der.DERApplicationSpecific app)
                        throws java.io.IOException
Ticket ::= [APPLICATION 1] SEQUENCE { tkt-vno[0] INTEGER, realm[1] Realm, sname[2] PrincipalName, enc-part[3] EncryptedData }

Throws:
java.io.IOException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.