Package com.yubico.yubikit.management
Class DeviceConfig.Builder
java.lang.Object
com.yubico.yubikit.management.DeviceConfig.Builder
- Enclosing class:
- DeviceConfig
Builder class for use with
ManagementSession.updateDeviceConfig(com.yubico.yubikit.management.DeviceConfig, boolean, byte[], byte[]) when altering the device configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoEjectTimeout(short autoEjectTimeout) Sets the timeout used when the YubiKey is in CCID-only mode withDeviceConfig.FLAG_EJECTset.build()Constructs a DeviceConfig using the current configuration.challengeResponseTimeout(byte challengeResponseTimeout) Sets the timeout used by the YubiOTP application, when waiting for a user presence check (physical touch).deviceFlags(int deviceFlags) Sets the Device flags of the YubiKey.enabledCapabilities(com.yubico.yubikit.core.Transport transport, int capabilities) Sets the enabled capabilities for the given transport.
-
Constructor Details
-
Builder
public Builder()Instantiates a new DeviceConfig.Builder.
-
-
Method Details
-
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
Sets the timeout used when the YubiKey is in CCID-only mode withDeviceConfig.FLAG_EJECTset.- Parameters:
autoEjectTimeout- the timeout, in seconds
-
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
Sets the Device flags of the YubiKey. -
build
Constructs a DeviceConfig using the current configuration.
-