|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ksoap2.transport.Transport
mymobilesite.communication.AuthTransport
public class AuthTransport
This class is responsible for establishing the session with the Identity Provider and sending the SaslMessages over this connection.
Field Summary | |
---|---|
private java.io.InputStream |
in
|
private java.io.OutputStream |
out
|
private javax.microedition.io.HttpsConnection |
session
|
Fields inherited from class org.ksoap2.transport.Transport |
---|
debug, requestDump, responseDump, url |
Constructor Summary | |
---|---|
AuthTransport()
Opens the session with the Identity Provider. |
Method Summary | |
---|---|
void |
call(SaslMessage request)
Sends the message and receives the response. |
void |
disconnect()
Closes the session with the authentication service at the Identity Provider |
java.lang.String |
getIdpName()
Retrieves the server certificate and extracts the name of the Identity Provider from it. |
private java.lang.String |
getName(java.lang.String subject)
|
void |
reset()
Closes the input and output streams, but keeps the session |
Methods inherited from class org.ksoap2.transport.Transport |
---|
createRequestData, parseResponse, setUrl, setXmlVersionTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.microedition.io.HttpsConnection session
private java.io.OutputStream out
private java.io.InputStream in
Constructor Detail |
---|
public AuthTransport() throws MessageException
MessageException
- If the Identity Provider cannot be found or its certificate
cannot be trusted.Method Detail |
---|
public java.lang.String getIdpName() throws MessageException
MessageException
- If the communication was disrupted.private java.lang.String getName(java.lang.String subject)
public void call(SaslMessage request) throws SoapFault, java.io.IOException, XmlPullParserException
request
- SaslMessage The SaslRequest that is to be sent and the message in which
the response should be stored.
SoapFault
- If the server returned a message indicating a fault.
java.io.IOException
- If the communication was disrupted.
XmlPullParserException
- If the response could not be parsed as XML.public void reset()
public void disconnect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |