|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecureChannel
This interface represents a secure channel to another (usually remote) device. Specific implementations take care of constructing, terminating, and querying the secure channel. All implementations should take care to clean up connections if they have not been set to be persistent.
| Method Summary | |
|---|---|
boolean |
init(java.lang.String remoteHost,
boolean useAsDefault)
Initializes an instance of a secure channel. |
boolean |
isEstablished()
Returns true if the channel has been established. |
boolean |
start(byte[] sharedSecret,
boolean persistent)
Establishes and starts a new secure channel to another host. |
boolean |
stop()
Stop a previously established secure channel. |
| Method Detail |
|---|
boolean init(java.lang.String remoteHost,
boolean useAsDefault)
remoteHost - The remote host to establish the channel to. This string is
dependent on the implementation of the secure channel.useAsDefault - If set to true, this channel will be used as default for all
further communication. It might not be supported by all
implementations, set to false if in doubt.
boolean start(byte[] sharedSecret,
boolean persistent)
sharedSecret - The shared secret to use when establishing the channel.persistent - If set to true, the secure channel will persist accross
application restarts (and might persist across reboots).
This is dependent on the implementation, only some might
support persistance.
init(java.lang.String, boolean)boolean stop()
init(java.lang.String, boolean)boolean isEstablished()
init(java.lang.String, boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||