Class 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 ticket
      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.
    • 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 - serverAddress
        userName - userName
        ticketValue - 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 class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()