public class MacAddressUserId extends Object implements AppIdUserIdMechanism
MacAddressUserId
creates a hex-encoded representation of the Mac address without any separators
(0123456789AB). A network interface hint can be specified optionally to select a
network interface (index/name).AppIdUserIdMechanism| Constructor and Description |
|---|
MacAddressUserId()
|
MacAddressUserId(int networkInterfaceIndex)
Create a new
MacAddressUserId using a networkInterfaceIndex. |
MacAddressUserId(String networkInterfaceName)
Create a new
MacAddressUserId using a networkInterfaceName. |
| Modifier and Type | Method and Description |
|---|---|
String |
createUserId()
Create a UserId for AppId authentication.
|
public MacAddressUserId()
public MacAddressUserId(int networkInterfaceIndex)
MacAddressUserId using a networkInterfaceIndex. The
index is applied to NetworkInterface.getNetworkInterfaces() to obtain the
desired network interface.networkInterfaceIndex - must be greater or equal to zero.public MacAddressUserId(String networkInterfaceName)
MacAddressUserId using a networkInterfaceName. This
name is compared with NetworkInterface.getName() and
NetworkInterface.getDisplayName() to obtain the desired network interface.networkInterfaceName - must not be null.public String createUserId()
AppIdUserIdMechanismcreateUserId in interface AppIdUserIdMechanismCopyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.