public class TicketFactory extends Object
| Constructor and Description |
|---|
TicketFactory() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public EncryptionKey getServerKey(KerberosPrincipal serverPrincipal, String serverPassword)
serverPrincipal - serverPassword - EncryptionKey.public Ticket getTicket(KerberosPrincipal clientPrincipal, KerberosPrincipal serverPrincipal, EncryptionKey serverKey) throws KerberosException, ParseException
clientPrincipal - serverPrincipal - serverKey - Ticket.KerberosExceptionParseExceptionCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.