Joram 5.2.6

org.objectweb.joram.shared.security
Class SimpleIdentity

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

public class SimpleIdentity
extends Identity

Default identity class for authentication through user and password.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.shared.security.Identity
logger
 
Constructor Summary
SimpleIdentity()
           
 
Method Summary
 boolean check(Identity identity)
          check the identity.
 java.lang.Object getCredential()
          get password or subject in jaas mode.
 java.lang.String getUserName()
          Get the user name.
 void readFrom(java.io.InputStream is)
          The object implements the readFrom method to restore its contents from the input stream.
 void setIdentity(java.lang.String user, java.lang.String passwd)
          set the identity.
 void setUserName(java.lang.String userName)
          set user name.
 java.lang.String toString()
           
 void writeTo(java.io.OutputStream os)
          The object implements the writeTo method to write its contents to the output stream.
 
Methods inherited from class org.objectweb.joram.shared.security.Identity
getRootIdentityClass, getRootName, read, readExternal, soapCode, soapDecode, write, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleIdentity

public SimpleIdentity()
Method Detail

getUserName

public java.lang.String getUserName()
Description copied from class: Identity
Get the user name.

Specified by:
getUserName in class Identity
Returns:
username.

setUserName

public void setUserName(java.lang.String userName)
Description copied from class: Identity
set user name.

Specified by:
setUserName in class Identity

getCredential

public java.lang.Object getCredential()
Description copied from class: Identity
get password or subject in jaas mode.

Specified by:
getCredential in class Identity
Returns:
password

setIdentity

public void setIdentity(java.lang.String user,
                        java.lang.String passwd)
                 throws java.lang.Exception
Description copied from class: Identity
set the identity.

Specified by:
setIdentity in class Identity
Throws:
java.lang.Exception

check

public boolean check(Identity identity)
              throws java.lang.Exception
Description copied from class: Identity
check the identity.

Specified by:
check in class Identity
Returns:
true if ok
Throws:
java.lang.Exception

toString

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

readFrom

public void readFrom(java.io.InputStream is)
              throws java.io.IOException
Description copied from interface: Streamable
The object implements the readFrom method to restore its contents from the input stream.

Parameters:
is - the stream to read data from in order to restore the object
Throws:
java.io.IOException

writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException
Description copied from interface: Streamable
The object implements the writeTo method to write its contents to the output stream.

Parameters:
os - the stream to write the object to
Throws:
java.io.IOException

Joram 5.2.6

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