org.apache.directory.server.kerberos.shared.store
Class TicketFactory

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.store.TicketFactory

public class TicketFactory
extends java.lang.Object

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
TicketFactory()
           
 
Method Summary
 javax.security.auth.kerberos.KerberosTicket getKerberosTicket(Ticket ticket)
          Convert an Apache Directory Kerberos Ticket into a KerberosTicket.
 EncryptionKey getServerKey(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal, java.lang.String serverPassword)
          Returns a server key derived from a server principal and server password.
 Ticket getTicket(javax.security.auth.kerberos.KerberosPrincipal clientPrincipal, javax.security.auth.kerberos.KerberosPrincipal serverPrincipal, EncryptionKey serverKey)
          Build the service ticket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicketFactory

public TicketFactory()
Method Detail

getServerKey

public EncryptionKey getServerKey(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                                  java.lang.String serverPassword)
Returns a server key derived from a server principal and server password.

Parameters:
serverPrincipal -
serverPassword -
Returns:
The server's EncryptionKey.

getTicket

public Ticket getTicket(javax.security.auth.kerberos.KerberosPrincipal clientPrincipal,
                        javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
                        EncryptionKey serverKey)
                 throws KerberosException
Build the service ticket. The service ticket contains the session key generated by the KDC for the client and service to use. The service will unlock the authenticator with the session key from the ticket. The principal in the ticket must equal the authenticator client principal. If set in the AP Options, the Ticket can also be sealed with the session key.

Parameters:
clientPrincipal -
serverPrincipal -
serverKey -
Returns:
The Ticket.
Throws:
KerberosException

getKerberosTicket

public javax.security.auth.kerberos.KerberosTicket getKerberosTicket(Ticket ticket)
                                                              throws java.io.IOException
Convert an Apache Directory Kerberos Ticket into a KerberosTicket.

Parameters:
ticket -
Returns:
The KerberosTicket.
Throws:
java.io.IOException


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