Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 82

javax.bluetooth
Class RemoteDevice

java.lang.Object
  extended by javax.bluetooth.RemoteDevice

public class RemoteDevice
extends java.lang.Object

This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.


Constructor Summary
protected RemoteDevice(java.lang.String address)
           
 
Method Summary
 boolean authenticate()
           
 boolean authorize(javax.microedition.io.Connection conn)
           
 boolean encrypt(javax.microedition.io.Connection conn, boolean on)
           
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getBluetoothAddress()
           
 java.lang.String getFriendlyName(boolean alwaysAsk)
           
static RemoteDevice getRemoteDevice(javax.microedition.io.Connection conn)
           
 int hashCode()
          Returns a hash code value for the object.
 boolean isAuthenticated()
           
 boolean isAuthorized(javax.microedition.io.Connection conn)
           
 boolean isEncrypted()
           
 boolean isTrustedDevice()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteDevice

protected RemoteDevice(java.lang.String address)
Method Detail

isTrustedDevice

public boolean isTrustedDevice()

getFriendlyName

public java.lang.String getFriendlyName(boolean alwaysAsk)
                                 throws java.io.IOException
Throws:
java.io.IOException

getBluetoothAddress

public final java.lang.String getBluetoothAddress()

equals

public boolean equals(java.lang.Object obj)
Description copied from class: java.lang.Object
Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation:

The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any reference values x and y, this method returns true if and only if x and y refer to the same object (x==y has the value true).

Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Boolean.hashCode(), Hashtable

hashCode

public int hashCode()
Description copied from class: java.lang.Object
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object), Hashtable

getRemoteDevice

public static RemoteDevice getRemoteDevice(javax.microedition.io.Connection conn)
                                    throws java.io.IOException
Throws:
java.io.IOException

authenticate

public boolean authenticate()
                     throws java.io.IOException
Throws:
java.io.IOException

authorize

public boolean authorize(javax.microedition.io.Connection conn)
                  throws java.io.IOException
Throws:
java.io.IOException

encrypt

public boolean encrypt(javax.microedition.io.Connection conn,
                       boolean on)
                throws java.io.IOException
Throws:
java.io.IOException

isAuthenticated

public boolean isAuthenticated()

isAuthorized

public boolean isAuthorized(javax.microedition.io.Connection conn)
                     throws java.io.IOException
Throws:
java.io.IOException

isEncrypted

public boolean isEncrypted()

JSR 82

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 82 specification.