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_EJECT
set.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.nfcRestricted
(Boolean nfcRestricted) Sets the NFC restricted flag of the YubiKey.
-
Constructor Details
-
Builder
public 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_EJECT
set.- 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. -
nfcRestricted
Sets the NFC restricted flag of the YubiKey. -
build
Constructs a DeviceConfig using the current configuration.
-