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 Object

Author:
Apache Directory Project

Constructor Summary
TicketFactory()
           
 
Method Summary
 EncryptionKey getServerKey(KerberosPrincipal serverPrincipal, String serverPassword)
          Returns a server key derived from a server principal and server password.
 Ticket getTicket(KerberosPrincipal clientPrincipal, 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(KerberosPrincipal serverPrincipal,
                                  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(KerberosPrincipal clientPrincipal,
                        KerberosPrincipal serverPrincipal,
                        EncryptionKey serverKey)
                 throws KerberosException,
                        ParseException
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
ParseException


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.