Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ public enum RFIDPKDResourceType {
DEVL(6),

/** Black List (.bl, .bls) */
BL(7);
BL(7),

/** LDIF file contents for TA */
LDIF_TA(8),

/** Master List with CV certificates for TA */
ML_TA(9);

private Integer value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class RfidSessionData {

@SerializedName(SERIALIZED_NAME_VIRTUAL_MODE)
@javax.annotation.Nullable
private String virtualMode;
private Boolean virtualMode;

public static final String SERIALIZED_NAME_SD_K_VERSION = "SDKVersion";

Expand Down Expand Up @@ -142,7 +142,7 @@ public class RfidSessionData {

public RfidSessionData() {}

public RfidSessionData virtualMode(@javax.annotation.Nullable String virtualMode) {
public RfidSessionData virtualMode(@javax.annotation.Nullable Boolean virtualMode) {
this.virtualMode = virtualMode;
return this;
}
Expand All @@ -154,11 +154,11 @@ public RfidSessionData virtualMode(@javax.annotation.Nullable String virtualMode
* @return virtualMode
*/
@javax.annotation.Nullable
public String getVirtualMode() {
public Boolean getVirtualMode() {
return virtualMode;
}

public void setVirtualMode(@javax.annotation.Nullable String virtualMode) {
public void setVirtualMode(@javax.annotation.Nullable Boolean virtualMode) {
this.virtualMode = virtualMode;
}

Expand Down Expand Up @@ -660,13 +660,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("VirtualMode") != null && !jsonObj.get("VirtualMode").isJsonNull())
&& !jsonObj.get("VirtualMode").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
"Expected the field `VirtualMode` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("VirtualMode").toString()));
}
if ((jsonObj.get("SDKVersion") != null && !jsonObj.get("SDKVersion").isJsonNull())
&& !jsonObj.get("SDKVersion").isJsonPrimitive()) {
throw new IllegalArgumentException(
Expand Down