|
Joram 5.2.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.security.Identity
org.objectweb.joram.shared.security.jaas.JonasIdentity
public class JonasIdentity
JAAS identity class used to authenticate through JOnAS.
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 |
---|
public JonasIdentity()
Method Detail |
---|
public void setIdentity(java.lang.String user, java.lang.String passwd) throws java.lang.Exception
Identity
setIdentity
in class Identity
java.lang.Exception
public javax.security.auth.Subject getSubject()
public java.lang.Object getCredential()
Identity
getCredential
in class Identity
public java.lang.String getUserName()
Identity
getUserName
in class Identity
public void setUserName(java.lang.String userName)
Identity
setUserName
in class Identity
public boolean check(Identity identity) throws java.lang.Exception
Identity
check
in class Identity
java.lang.Exception
public void readFrom(java.io.InputStream is) throws java.io.IOException
Streamable
is
- the stream to read data from in order to restore the object
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void writeTo(java.io.OutputStream os) throws java.io.IOException
Streamable
os
- the stream to write the object to
java.io.IOException
|
Joram 5.2.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |