|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.dobj.DOConnection
net.cnri.dobj.DOServerConnection
public class DOServerConnection
This class provides the interface for server software to communicate using the DO protocol with a digital object client.
Field Summary |
---|
Constructor Summary | |
---|---|
DOServerConnection(DOAuthentication authentication,
java.net.Socket connection)
|
|
DOServerConnection(DOAuthentication authentication,
java.net.Socket connection,
DOConnectionListener listener)
Construct a server-side connection handler using the given socket. |
Method Summary | |
---|---|
boolean |
authenticateClient(java.lang.String clientID)
This method is called by the digital object server to verify the identity of the client using the public key assigned to the ID of the client.. |
boolean |
authenticateCredential(java.lang.String credentialID)
Verify that this client has been granted a credential by the identified entity. |
java.lang.Object |
getConnectionMapping(java.lang.Object mappingKey)
Returns the object from the connection-level information table that had previously been used as the mappingData parameter for a call to setConnectionMapping with the given mappingKey. |
java.lang.String[] |
getCredentialIDs()
Returns a list of unverified IDs that the client claims as credentials. |
static javax.net.ssl.SSLServerSocketFactory |
getSecureServerSocketFactory(PKAuthentication authentication,
java.security.PublicKey pubKey)
This method returns an SSLServerSocketFactory that can be used to create SSLSockets that authenticate their side of the connection using handle public key authentication. |
void |
setConnectionMapping(java.lang.Object mappingKey,
java.lang.Object mappingData)
Inserts an object into the connection-level information table. |
Methods inherited from class net.cnri.dobj.DOConnection |
---|
close, decodeUTF8, decodeUTF8, encodeUTF8, getAuthID, getProtocolMajorVersion, getProtocolMinorVersion, getResolver, getSocket, isEncrypted, isOpen, resolvePublicKeys, setListener, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DOServerConnection(DOAuthentication authentication, java.net.Socket connection) throws java.lang.Exception
java.lang.Exception
public DOServerConnection(DOAuthentication authentication, java.net.Socket connection, DOConnectionListener listener) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.lang.String[] getCredentialIDs()
public boolean authenticateCredential(java.lang.String credentialID)
public static javax.net.ssl.SSLServerSocketFactory getSecureServerSocketFactory(PKAuthentication authentication, java.security.PublicKey pubKey) throws java.lang.Exception
java.lang.Exception
public boolean authenticateClient(java.lang.String clientID) throws DOException
DOException
public void setConnectionMapping(java.lang.Object mappingKey, java.lang.Object mappingData)
public java.lang.Object getConnectionMapping(java.lang.Object mappingKey)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |