aboutsummaryrefslogtreecommitdiffstats
path: root/java/jau/direct_bt/DBTDevice.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/jau/direct_bt/DBTDevice.java')
-rw-r--r--java/jau/direct_bt/DBTDevice.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/java/jau/direct_bt/DBTDevice.java b/java/jau/direct_bt/DBTDevice.java
index 3f2f5b76..70fdf7e9 100644
--- a/java/jau/direct_bt/DBTDevice.java
+++ b/java/jau/direct_bt/DBTDevice.java
@@ -519,24 +519,12 @@ public class DBTDevice extends DBTObject implements BTDevice
private final native byte unpairImpl();
@Override
- public final boolean setConnSecurityLevel(final BTSecurityLevel sec_level) {
- return setConnSecurityLevelImpl(sec_level.value);
- }
- private final native boolean setConnSecurityLevelImpl(final byte sec_level);
-
- @Override
public final BTSecurityLevel getConnSecurityLevel() {
return BTSecurityLevel.get( getConnSecurityLevelImpl() );
}
private final native byte getConnSecurityLevelImpl();
@Override
- public final boolean setConnIOCapability(final SMPIOCapability io_cap) {
- return setConnIOCapabilityImpl(io_cap.value);
- }
- private final native boolean setConnIOCapabilityImpl(final byte io_cap);
-
- @Override
public final SMPIOCapability getConnIOCapability() {
return SMPIOCapability.get( getConnIOCapabilityImpl() );
}
@@ -549,23 +537,6 @@ public class DBTDevice extends DBTObject implements BTDevice
private final native boolean setConnSecurityImpl(final byte sec_level, final byte io_cap);
@Override
- public final boolean setConnSecurityBest(final BTSecurityLevel sec_level, final SMPIOCapability io_cap) {
- if( BTSecurityLevel.UNSET.value < sec_level.value && SMPIOCapability.UNSET.value != io_cap.value ) {
- return setConnSecurity(sec_level, io_cap);
- } else if( BTSecurityLevel.UNSET.value < sec_level.value ) {
- if( BTSecurityLevel.ENC_ONLY.value >= sec_level.value ) {
- return setConnSecurity(sec_level, SMPIOCapability.NO_INPUT_NO_OUTPUT);
- } else {
- return setConnSecurityLevel(sec_level);
- }
- } else if( SMPIOCapability.UNSET.value != io_cap.value ) {
- return setConnIOCapability(io_cap);
- } else {
- return false;
- }
- }
-
- @Override
public final boolean setConnSecurityAuto(final SMPIOCapability iocap_auto) {
return setConnSecurityAutoImpl( iocap_auto.value );
}