Package com.yubico.yubikit.management
Class DeviceConfig.Builder
- java.lang.Object
-
- com.yubico.yubikit.management.DeviceConfig.Builder
-
- Enclosing class:
- DeviceConfig
public static class DeviceConfig.Builder extends java.lang.Object
Builder class for use withManagementSession.updateDeviceConfig(com.yubico.yubikit.management.DeviceConfig, boolean, byte[], byte[])
when altering the device configuration.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new DeviceConfig.Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceConfig.Builder
autoEjectTimeout(short autoEjectTimeout)
Sets the timeout used when the YubiKey is in CCID-only mode withDeviceConfig.FLAG_EJECT
set.DeviceConfig
build()
Constructs a DeviceConfig using the current configuration.DeviceConfig.Builder
challengeResponseTimeout(byte challengeResponseTimeout)
Sets the timeout used by the YubiOTP application, when waiting for a user presence check (physical touch).DeviceConfig.Builder
deviceFlags(int deviceFlags)
Sets the Device flags of the YubiKey.DeviceConfig.Builder
enabledCapabilities(com.yubico.yubikit.core.Transport transport, int capabilities)
Sets the enabled capabilities for the given transport.
-
-
-
Method Detail
-
enabledCapabilities
public DeviceConfig.Builder enabledCapabilities(com.yubico.yubikit.core.Transport transport, int capabilities)
Sets the enabled capabilities for the given transport.- Parameters:
transport
- the transport to change capabilities forcapabilities
- the capabilities to set
-
autoEjectTimeout
public DeviceConfig.Builder autoEjectTimeout(short autoEjectTimeout)
Sets the timeout used when the YubiKey is in CCID-only mode withDeviceConfig.FLAG_EJECT
set.- Parameters:
autoEjectTimeout
- the timeout, in seconds
-
challengeResponseTimeout
public DeviceConfig.Builder challengeResponseTimeout(byte challengeResponseTimeout)
Sets the timeout used by the YubiOTP application, when waiting for a user presence check (physical touch).- Parameters:
challengeResponseTimeout
- the timeout, in seconds
-
deviceFlags
public DeviceConfig.Builder deviceFlags(int deviceFlags)
Sets the Device flags of the YubiKey.
-
build
public DeviceConfig build()
Constructs a DeviceConfig using the current configuration.
-
-