Joram 5.2.5

org.objectweb.joram.shared.security.jaas
Class JonasIdentity

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

public class JonasIdentity
extends Identity

JAAS identity class used to authenticate through JOnAS.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.shared.security.Identity
logger
 
Constructor Summary
JonasIdentity()
           
 
Method Summary
 boolean check(Identity identity)
          check the identity.
 java.lang.Object getCredential()
          get password or subject in jaas mode.
 javax.security.auth.Subject getSubject()
          Gets the subject of identity.
 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

JonasIdentity

public JonasIdentity()
Method Detail

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

getSubject

public javax.security.auth.Subject getSubject()
Gets the subject of identity.

Returns:
the subject of 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 or subject.

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

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

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

toString

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

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.5

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