-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
be10a09
commit 04436dc
Showing
5 changed files
with
275 additions
and
5 deletions.
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
jans-scim/model/src/main/java/io/jans/scim/model/scim2/fido/DeviceData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
package io.jans.scim.model.scim2.fido; | ||
|
||
import io.jans.scim.model.scim2.annotations.Attribute; | ||
import io.jans.scim.model.scim2.AttributeDefinition; | ||
|
||
public class DeviceData { | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String uuid; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String pushToken; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String type; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String platform; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String name; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String osName; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String osVersion; | ||
|
||
@Attribute(description = "", mutability = AttributeDefinition.Mutability.IMMUTABLE) | ||
private String customData; | ||
|
||
public String getUuid() { | ||
return uuid; | ||
} | ||
|
||
public String getPushToken() { | ||
return pushToken; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public String getPlatform() { | ||
return platform; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getOsName() { | ||
return osName; | ||
} | ||
|
||
public String getOsVersion() { | ||
return osVersion; | ||
} | ||
|
||
public String getCustomData() { | ||
return customData; | ||
} | ||
|
||
public void setUuid(String uuid) { | ||
this.uuid = uuid; | ||
} | ||
|
||
public void setPushToken(String pushToken) { | ||
this.pushToken = pushToken; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public void setPlatform(String platform) { | ||
this.platform = platform; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public void setOsName(String osName) { | ||
this.osName = osName; | ||
} | ||
|
||
public void setOsVersion(String osVersion) { | ||
this.osVersion = osVersion; | ||
} | ||
|
||
public void setCustomData(String customData) { | ||
this.customData = customData; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
jans-scim/service/src/main/java/io/jans/scim/model/fido2/Fido2DeviceData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text. | ||
* | ||
* Copyright (c) 2020, Janssen Project | ||
*/ | ||
|
||
package io.jans.scim.model.fido2; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* FIDO2 device data | ||
* | ||
* @author Yuriy Movchan Date: 02/16/2016 | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Fido2DeviceData implements Serializable { | ||
|
||
private static final long serialVersionUID = -8173244116167488365L; | ||
|
||
@JsonProperty(value = "uuid") | ||
private final String uuid; | ||
|
||
@JsonProperty(value = "push_token") | ||
private final String pushToken; | ||
|
||
@JsonProperty(value = "type") | ||
private final String type; | ||
|
||
@JsonProperty(value = "platform") | ||
private final String platform; | ||
|
||
@JsonProperty(value = "name") | ||
private final String name; | ||
|
||
@JsonProperty(value = "os_name") | ||
private final String osName; | ||
|
||
@JsonProperty(value = "os_version") | ||
private final String osVersion; | ||
|
||
@JsonProperty(value = "custom_data") | ||
private final Map<String, String> customData; | ||
|
||
public Fido2DeviceData(@JsonProperty(value = "uuid") String uuid, @JsonProperty(value = "token") String pushToken, | ||
@JsonProperty(value = "type") String type, @JsonProperty(value = "platform") String platform, | ||
@JsonProperty(value = "name") String name, @JsonProperty(value = "os_name") String osName, | ||
@JsonProperty(value = "os_version") String osVersion, @JsonProperty(value = "custom_data") Map<String, String> customData) { | ||
this.uuid = uuid; | ||
this.pushToken = pushToken; | ||
this.type = type; | ||
this.platform = platform; | ||
this.name = name; | ||
this.osName = osName; | ||
this.osVersion = osVersion; | ||
this.customData = customData; | ||
} | ||
|
||
public String getUuid() { | ||
return uuid; | ||
} | ||
|
||
public String getPushToken() { | ||
return pushToken; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public String getPlatform() { | ||
return platform; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getOsName() { | ||
return osName; | ||
} | ||
|
||
public String getOsVersion() { | ||
return osVersion; | ||
} | ||
|
||
public final Map<String, String> getCustomData() { | ||
return customData; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "DeviceData [uuid=" + uuid + ", pushToken=" + pushToken + ", type=" + type + ", platform=" + platform + ", name=" + name + ", osName=" | ||
+ osName + ", osVersion=" + osVersion + ", customData=" + customData + "]"; | ||
} | ||
|
||
} |