Package com.perforce.p4java.server
Class AuthTicket
- java.lang.Object
-
- com.perforce.p4java.server.AuthTicket
-
public class AuthTicket extends java.lang.Object
Object representing the three parts of a Perforce ticket, the server address, the user name, and the ticket token value.
-
-
Constructor Summary
Constructors Constructor Description AuthTicket()
Creates an empty ticketAuthTicket(java.lang.String serverAddress, java.lang.String userName, java.lang.String ticketValue)
Create a ticket with the specified server address, user name, and ticket value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getServerAddress()
java.lang.String
getTicketValue()
java.lang.String
getUserName()
int
hashCode()
void
setServerAddress(java.lang.String serverAddress)
void
setTicketValue(java.lang.String ticketValue)
void
setUserName(java.lang.String userName)
java.lang.String
toString()
-
-
-
Constructor Detail
-
AuthTicket
public AuthTicket()
Creates an empty ticket
-
AuthTicket
public AuthTicket(java.lang.String serverAddress, java.lang.String userName, java.lang.String ticketValue)
Create a ticket with the specified server address, user name, and ticket value.- Parameters:
serverAddress
- serverAddressuserName
- userNameticketValue
- ticketValue
-
-
Method Detail
-
getServerAddress
public java.lang.String getServerAddress()
- Returns:
- the serverAddress
-
setServerAddress
public void setServerAddress(java.lang.String serverAddress)
- Parameters:
serverAddress
- the serverAddress to set
-
getUserName
public java.lang.String getUserName()
- Returns:
- the userName
-
setUserName
public void setUserName(java.lang.String userName)
- Parameters:
userName
- the userName to set
-
getTicketValue
public java.lang.String getTicketValue()
- Returns:
- the ticketValue
-
setTicketValue
public void setTicketValue(java.lang.String ticketValue)
- Parameters:
ticketValue
- the ticketValue to set
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-