public class ObexSession extends Object
ObexSession
interface characterizes the term
"OBEX Connection" as defined in the IrDA Object Exchange Protocol v1.2, which
could be the server-side view of an OBEX connection, or the client-side view
of the same connection, which is established by server's accepting of a
client issued "CONNECT".
This interface serves as the common super class for
ClientSession
and ServerSession
.
Modifier and Type | Field and Description |
---|---|
protected Authenticator |
mAuthenticator |
protected byte[] |
mChallengeDigest |
Constructor and Description |
---|
ObexSession() |
Modifier and Type | Method and Description |
---|---|
boolean |
handleAuthChall(HeaderSet header)
Called when the server received an authentication challenge header.
|
boolean |
handleAuthResp(byte[] authResp)
Called when the server received an authentication response header.
|
protected Authenticator mAuthenticator
protected byte[] mChallengeDigest
public boolean handleAuthChall(HeaderSet header) throws IOException
header
- the header with the authentication challengetrue
if the last request should be resent;
false
if the last request should not be resentIOException
public boolean handleAuthResp(byte[] authResp)
authResp
- the authentication responsetrue
if the response passed; false
if
the response failed