|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.twistedmatrix.spread.pb.Connection
Various methods for connecting to a remote PB servers. The connect() methods are for old-style PB servers. login() is used for new style (realm/portal/avatar) servers, available in Twisted 1.1.
Field Summary | |
static ByteString |
ROOT
|
Constructor Summary | |
Connection()
|
Method Summary | |
static ByteString |
challengeResponse(ByteString challenge,
ByteString password)
Make a response to a challenge. |
static RemoteReference |
connect(StreamPair sp,
ByteString username,
ByteString password,
ByteString service)
Log in to a perspective whose name is the same as the username. |
static RemoteReference |
connect(StreamPair sp,
ByteString username,
ByteString password,
ByteString service,
ByteString perspective)
Log in to a perspective. |
static RemoteReference |
connect(StreamPair sp,
ByteString username,
ByteString password,
ByteString service,
ByteString perspective,
JellyPolicy policy)
Log in to a perspective. |
static RemoteReference |
connect(StreamPair sp,
ByteString username,
ByteString password,
ByteString service,
ByteString perspective,
JellyPolicy policy,
Referenceable client)
Log in to a perspective. |
static RemoteReference |
connect(StreamPair sp,
ByteString username,
ByteString password,
ByteString service,
JellyPolicy policy)
Log in to a perspective whose name is the same as the username. |
static RemoteReference |
getObjectAt(StreamPair sp)
Get the remote object at the root of server. |
static RemoteReference |
getObjectAt(StreamPair sp,
JellyPolicy policy)
Get the remote object at the root of server. |
static RemoteReference |
login(StreamPair sp,
ByteString username,
ByteString password)
Log in to a perspective (new method). |
static RemoteReference |
login(StreamPair sp,
ByteString username,
ByteString password,
JellyPolicy policy)
Log in to a perspective (new method). |
static RemoteReference |
login(StreamPair sp,
ByteString username,
ByteString password,
JellyPolicy policy,
Referenceable client)
Log in to a perspective (new method). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ByteString ROOT
Constructor Detail |
public Connection()
Method Detail |
public static RemoteReference getObjectAt(StreamPair sp, JellyPolicy policy)
public static RemoteReference getObjectAt(StreamPair sp)
public static RemoteReference login(StreamPair sp, ByteString username, ByteString password, JellyPolicy policy, Referenceable client) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as.password
- the password for this username.policy
- used to determine Jellying policies.client
- passed as the 'reference' parameter to perspective's attached() methodpublic static RemoteReference login(StreamPair sp, ByteString username, ByteString password, JellyPolicy policy) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as.password
- the password for this username.policy
- used to determine Jellying policies.public static RemoteReference login(StreamPair sp, ByteString username, ByteString password) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as.password
- the password for this username.public static RemoteReference connect(StreamPair sp, ByteString username, ByteString password, ByteString service, ByteString perspective, JellyPolicy policy, Referenceable client) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as to the authorizer.password
- the password for this username.service
- the service to request.perspective
- the name of the perspective to request.policy
- used to determine Jellying policies.client
- passed as the 'reference' parameter to perspective's attached() methodpublic static RemoteReference connect(StreamPair sp, ByteString username, ByteString password, ByteString service, ByteString perspective, JellyPolicy policy) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as to the authorizer.password
- the password for this username.service
- the service to request.perspective
- the name of the perspective to request.policy
- used to determine Jellying policies.public static RemoteReference connect(StreamPair sp, ByteString username, ByteString password, ByteString service, ByteString perspective) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as to the authorizer.password
- the password for this username.service
- the service to request.perspective
- the name of the perspective to request.public static RemoteReference connect(StreamPair sp, ByteString username, ByteString password, ByteString service, JellyPolicy policy) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as to the authorizer.password
- the password for this username.service
- the service to request.public static RemoteReference connect(StreamPair sp, ByteString username, ByteString password, ByteString service) throws RemoteError, java.io.IOException
sp
- an open connection to a remote server.username
- the name you will be identified as to the authorizer.password
- the password for this username.service
- the service to request.public static ByteString challengeResponse(ByteString challenge, ByteString password)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |