示例#1
0
  // JAVADOC COMMENT ELIDED
  public boolean authenticate() throws IOException {
    if (!BCC.getInstance().isConnected(getBluetoothAddress())) {
      throw new IOException(
          "There are no open connections between the " + "local device and this RemoteDevice.");
    }

    return BCC.getInstance().authenticate(getBluetoothAddress());
  }
示例#2
0
 // JAVADOC COMMENT ELIDED
 public String getFriendlyName(boolean alwaysAsk) throws IOException {
   // contact the remote device if name is not known or alwaysAsk is true
   if (friendlyName == null || alwaysAsk) {
     friendlyName = BCC.getInstance().getFriendlyName(getBluetoothAddress());
   }
   return friendlyName;
 }
示例#3
0
 // JAVADOC COMMENT ELIDED
 public boolean isTrustedDevice() {
   return BCC.getInstance().isTrusted(getBluetoothAddress());
 }
示例#4
0
 // JAVADOC COMMENT ELIDED
 public boolean isEncrypted() {
   return BCC.getInstance().isEncrypted(getBluetoothAddress());
 }
示例#5
0
 // JAVADOC COMMENT ELIDED
 public boolean isAuthenticated() {
   return BCC.getInstance().isAuthenticated(getBluetoothAddress());
 }