Style Intelligence v12.0

inetsoft.sree.security
Class DefaultTicket

java.lang.Object
  extended by inetsoft.sree.security.DefaultTicket
All Implemented Interfaces:
Serializable

public class DefaultTicket
extends Object
implements Serializable

Default implementation of a ticket. It stores user ID and password.

See Also:
Serialized Form

Constructor Summary
DefaultTicket(String name, String passwd)
          Create a ticket from an user id and a password.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Get user name.
 String getPassword()
          Get password.
 int hashCode()
           
static DefaultTicket parse(String str)
          Create a ticket from a string representation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTicket

public DefaultTicket(String name,
                     String passwd)
Create a ticket from an user id and a password.

Parameters:
name - user name.
passwd - password.
Method Detail

parse

public static DefaultTicket parse(String str)
Create a ticket from a string representation. The string should be the user name and password separated by a colon.


getName

public String getName()
Get user name.


getPassword

public String getPassword()
Get password.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.