public abstract class KeyParam
extends java.lang.Object
KeyParam abstract class wraps fields related to keys. It is used to attempt physical
access using KeyManager.access(KeyParam, SingleCallback), among other actions.| Modifier and Type | Method and Description |
|---|---|
abstract int |
badgeId()
Returns an int of the identification number of the badge.
|
static KeyParam |
build(int keyId,
int badgeId)
Constructor for a
KeyParam object with the keyId and badgeId set. |
static KeyParam |
build(int keyId,
int badgeId,
java.lang.String resourceId)
Constructor for a
KeyParam object with the keyId, badgeId, and resourceId set. |
abstract int |
keyId()
Returns an int of the identification number of the key.
|
abstract java.lang.String |
resourceId()
Returns a String of the identification number of the resource.
|
public static KeyParam build(int keyId, int badgeId)
KeyParam object with the keyId and badgeId set. The
orgId() is set to BadgeIdOrgIdEntity.INVALID_ORG_ID by default.keyId - the identification number of the keybadgeId - the identification number of the badgeKeyParam object with the keyId and badgeId set.public static KeyParam build(int keyId, int badgeId, java.lang.String resourceId)
KeyParam object with the keyId, badgeId, and resourceId set. The
orgId() is set to BadgeIdOrgIdEntity.INVALID_ORG_ID by default.keyId - the identification number of the keybadgeId - the identification number of the badgeresourceId - the identification number of the resourceKeyParam object with the keyId, badgeId, and resourceId set.public abstract int keyId()
public abstract int badgeId()
@Nullable public abstract java.lang.String resourceId()
null.