Joram 5.3.1

org.objectweb.joram.shared.security
Class Identity

java.lang.Object
  extended by org.objectweb.joram.shared.security.Identity
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Streamable
Direct Known Subclasses:
JonasIdentity, SimpleIdentity

public abstract class Identity
extends java.lang.Object
implements java.io.Externalizable, Streamable

Abstract class needed to describe all identities.

See Also:
Serialized Form

Field Summary
static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
Identity()
          Constructs an Identity.
 
Method Summary
abstract  boolean check(Identity identity)
          check the identity.
static java.lang.String getRootIdentityClass(java.lang.String rootName)
           
static java.lang.String getRootName(java.lang.String rootName)
           
abstract  java.lang.String getUserName()
          Get the user name.
static Identity read(java.io.InputStream is)
           
 void readExternal(java.io.ObjectInput in)
           
abstract  void setIdentity(java.lang.String user, java.lang.String passwd)
          set the identity.
abstract  void setUserName(java.lang.String userName)
          set user name.
 java.util.Hashtable soapCode()
           
static java.lang.Object soapDecode(java.util.Hashtable h)
           
static void write(Identity identity, java.io.OutputStream os)
          ***** ***** ***** ***** ***** ***** ***** Streamable interface ***** ***** ***** ***** ***** ***** ***** *****
 void writeExternal(java.io.ObjectOutput out)
          ***** ***** ***** ***** ***** ***** ***** Externalizable interface ***** ***** ***** ***** ***** ***** ***** *****
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.joram.shared.stream.Streamable
readFrom, writeTo
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
Constructor Detail

Identity

public Identity()
Constructs an Identity.

Method Detail

getUserName

public abstract java.lang.String getUserName()
Get the user name.

Returns:
username.

setUserName

public abstract void setUserName(java.lang.String userName)
set user name.

Parameters:
userName -

setIdentity

public abstract void setIdentity(java.lang.String user,
                                 java.lang.String passwd)
                          throws java.lang.Exception
set the identity.

Parameters:
user -
passwd -
Throws:
java.lang.Exception

check

public abstract boolean check(Identity identity)
                       throws java.lang.Exception
check the identity.

Parameters:
identity - the identity to check
Returns:
true if ok
Throws:
java.lang.Exception - the exception

getRootIdentityClass

public static java.lang.String getRootIdentityClass(java.lang.String rootName)
Parameters:
rootName -
Returns:
identity class name.

getRootName

public static java.lang.String getRootName(java.lang.String rootName)
Parameters:
rootName -
Returns:
the rootName without Identity class name.

soapCode

public java.util.Hashtable soapCode()
                             throws java.io.IOException
Throws:
java.io.IOException

soapDecode

public static java.lang.Object soapDecode(java.util.Hashtable h)
                                   throws java.lang.Exception
Throws:
ClassNotFound
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
java.lang.Exception

writeExternal

public final void writeExternal(java.io.ObjectOutput out)
                         throws java.io.IOException
***** ***** ***** ***** ***** ***** ***** Externalizable interface ***** ***** ***** ***** ***** ***** ***** *****

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public final void readExternal(java.io.ObjectInput in)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

write

public static void write(Identity identity,
                         java.io.OutputStream os)
                  throws java.io.IOException
***** ***** ***** ***** ***** ***** ***** Streamable interface ***** ***** ***** ***** ***** ***** ***** *****

Throws:
java.io.IOException

read

public static Identity read(java.io.InputStream is)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException,
                            java.lang.InstantiationException,
                            java.lang.IllegalAccessException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

Joram 5.3.1

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved