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 TicketFactory()
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
.KerberosException
ParseException
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.