org.nakedobjects.runtime.authentication.standard
Class SimpleSession

java.lang.Object
  extended by org.nakedobjects.metamodel.authentication.AuthenticationSessionAbstract
      extended by org.nakedobjects.runtime.authentication.standard.SimpleSession
All Implemented Interfaces:
java.io.Serializable, AuthenticationSession, Encodable

public final class SimpleSession
extends AuthenticationSessionAbstract

See Also:
Serialized Form

Constructor Summary
SimpleSession(DataInputExtended input)
           
SimpleSession(java.lang.String name, java.util.List<java.lang.String> roles)
          Defaults AuthenticationSessionAbstract.getValidationCode() to empty string ("").
SimpleSession(java.lang.String name, java.util.List<java.lang.String> roles, java.lang.String code)
           
SimpleSession(java.lang.String name, java.lang.String[] roles)
          as per SimpleSession(String, List).
SimpleSession(java.lang.String name, java.lang.String[] roles, java.lang.String code)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equals(SimpleSession other)
           
 int hashCode()
           
 
Methods inherited from class org.nakedobjects.metamodel.authentication.AuthenticationSessionAbstract
encode, getAttribute, getRoles, getUserName, getValidationCode, hasUserNameOf, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleSession

public SimpleSession(java.lang.String name,
                     java.lang.String[] roles)
as per SimpleSession(String, List).


SimpleSession

public SimpleSession(java.lang.String name,
                     java.util.List<java.lang.String> roles)
Defaults AuthenticationSessionAbstract.getValidationCode() to empty string ("").


SimpleSession

public SimpleSession(java.lang.String name,
                     java.lang.String[] roles,
                     java.lang.String code)

SimpleSession

public SimpleSession(java.lang.String name,
                     java.util.List<java.lang.String> roles,
                     java.lang.String code)

SimpleSession

public SimpleSession(DataInputExtended input)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(SimpleSession other)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.