public class DOServerConnection extends DOConnection
CONTROL_CHANNEL_ID, DEBUG, DEBUG_BLOCKING, DEBUG_BYTES, DEBUG_CONTROL, DEFAULT_DEBUG, DEFAULT_DEBUG_BLOCKING, DEFAULT_DEBUG_BYTES, DEFAULT_DEBUG_CONTROL, DEFAULT_READ_BUFFER_SIZE, DEFAULT_WRITE_BUFFER_SIZE, ERROR_RESPONSE_CODE, MAX_BYTES_IN_BLOCKING_WINDOW, MIN_BYTES_IN_BLOCKING_WINDOW, SUCCESS_RESPONSE_CODE
Constructor and Description |
---|
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.
|
DOServerConnection(DOAuthentication authentication,
java.net.Socket connection,
DOConnectionListener listener,
DelegationClient delegationClient) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateClient(java.lang.String clientID,
java.lang.String storedPassword)
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 |
authenticateClient(java.lang.String clientID,
java.lang.String storedPassword,
java.security.PublicKey storedPublicKey)
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.
|
java.security.PublicKey[] |
resolvePublicKeys(java.lang.String clientID)
Securely resolve a public key for the given handle
|
void |
setConnectionMapping(java.lang.Object mappingKey,
java.lang.Object mappingData)
Inserts an object into the connection-level information table.
|
static boolean |
verifyPassword(java.lang.String storedPassword,
net.handle.hdllib.VerifyAuthRequest req) |
close, decodeUTF8, decodeUTF8, encodeUTF8, getAuthID, getProtocolMajorVersion, getProtocolMinorVersion, getProtocolTimeout, getResolver, getSocket, isEncrypted, isOpen, setListener, setProtocolTimeout, setResolver, toString
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
public DOServerConnection(DOAuthentication authentication, java.net.Socket connection, DOConnectionListener listener, DelegationClient delegationClient) throws java.lang.Exception
java.lang.Exception
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, java.lang.String storedPassword) throws DOException
DOException
public boolean authenticateClient(java.lang.String clientID, java.lang.String storedPassword, java.security.PublicKey storedPublicKey) throws DOException
DOException
public void setConnectionMapping(java.lang.Object mappingKey, java.lang.Object mappingData)
public java.lang.Object getConnectionMapping(java.lang.Object mappingKey)
public java.security.PublicKey[] resolvePublicKeys(java.lang.String clientID)
public static boolean verifyPassword(java.lang.String storedPassword, net.handle.hdllib.VerifyAuthRequest req) throws net.handle.hdllib.HandleException
net.handle.hdllib.HandleException