|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.server.AuthTicketsHelper
public class AuthTicketsHelper
This class is designed to lookup authentication tickets from a tickets file
Constructor Summary | |
---|---|
AuthTicketsHelper()
|
Method Summary | |
---|---|
static AuthTicket |
getTicket(java.lang.String serverAddress,
java.lang.String ticketsFilePath)
Get the first found ticket in the specified ticket file that matches the specified server address. |
static AuthTicket |
getTicket(java.lang.String userName,
java.lang.String serverAddress,
java.lang.String ticketsFilePath)
Get the first found ticket in the specified ticket file that matches the specified user name and server address. |
static AuthTicket[] |
getTickets(java.io.File ticketsFile)
Get all the tickets found in the specified file. |
static AuthTicket[] |
getTickets(java.lang.String ticketsFilePath)
Get all the tickets found in the file at the specified file path. |
static java.lang.String |
getTicketValue(java.lang.String userName,
java.lang.String serverAddress,
java.lang.String ticketsFilePath)
Get the first found ticket value that matches the specified user name and server address. |
static void |
saveTicket(AuthTicket ticket,
java.io.File ticketsFile)
Save the specified ticket as an entry into the specified tickets file. |
static void |
saveTicket(AuthTicket ticket,
java.lang.String ticketsFilePath)
Save the specified ticket as an entry into the specified tickets file. |
static void |
saveTicket(java.lang.String userName,
java.lang.String serverAddress,
java.lang.String ticketValue,
java.io.File ticketsFile)
Save the specified parameters as an entry into the specified tickets file. |
static void |
saveTicket(java.lang.String userName,
java.lang.String serverAddress,
java.lang.String ticketValue,
java.lang.String ticketsFilePath)
Save the specified parameters as an entry into the specified tickets file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthTicketsHelper()
Method Detail |
---|
public static java.lang.String getTicketValue(java.lang.String userName, java.lang.String serverAddress, java.lang.String ticketsFilePath) throws java.io.IOException
userName
- serverAddress
- ticketsFilePath
-
java.io.IOException
- - io exception from reading tickets filepublic static AuthTicket[] getTickets(java.lang.String ticketsFilePath) throws java.io.IOException
ticketsFilePath
-
java.io.IOException
- - io exception from reading tickets filepublic static AuthTicket[] getTickets(java.io.File ticketsFile) throws java.io.IOException
ticketsFile
-
java.io.IOException
- - io exception from reading tickets filepublic static AuthTicket getTicket(java.lang.String userName, java.lang.String serverAddress, java.lang.String ticketsFilePath) throws java.io.IOException
userName
- - possibly null user name to match against the found ticketsserverAddress
- - non-null server addressticketsFilePath
- - path to tickets file to search
java.io.IOException
- - io exception from reading tickets filepublic static AuthTicket getTicket(java.lang.String serverAddress, java.lang.String ticketsFilePath) throws java.io.IOException
serverAddress
- - non-null server addressticketsFilePath
- - path to tickets file to search
java.io.IOException
- - io exception from reading tickets filepublic static void saveTicket(AuthTicket ticket, java.lang.String ticketsFilePath) throws java.io.IOException
ticket
- - non-null ticketticketsFilePath
- - non-null path
java.io.IOException
public static void saveTicket(AuthTicket ticket, java.io.File ticketsFile) throws java.io.IOException
ticket
- - non-null ticketticketsFile
- - non-null file
java.io.IOException
public static void saveTicket(java.lang.String userName, java.lang.String serverAddress, java.lang.String ticketValue, java.lang.String ticketsFilePath) throws java.io.IOException
userName
- - non-null user nameserverAddress
- - non-null server addressticketValue
- - non-null ticket valueticketsFilePath
- - non-null file path
java.io.IOException
public static void saveTicket(java.lang.String userName, java.lang.String serverAddress, java.lang.String ticketValue, java.io.File ticketsFile) throws java.io.IOException
userName
- - non-null user nameserverAddress
- - non-null server addressticketValue
- - possibly null ticket valueticketsFile
- - non-null file
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |