RemoteDevice.authenticate()
Authentication state of the connection cannot be changed. This method returns true if the connection is already authenticated and false in all other cases.
RemoteDevice.encrypt(javax.microedition.io.Connection conn,
boolean on)
Switching encryption state of a connection is not supported. If the
connection is already encrypted, RemoteDevice.encrypt(conn, true)
returns
true, as does RemoteDevice.encrypt(conn, false)
if encryption
is already turned off.