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
24 changes: 12 additions & 12 deletions flowvault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Reveal a token back to its real value (using the same `skyflowClient` from above
// 1. Create a container and a Reveal Element for the token
val revealContainer = skyflowClient.container(Skyflow.ContainerType.REVEAL)
val cardNumberReveal = Skyflow.RevealElementInput(
token = "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
token = "<TOKEN_1>",
label = "Card Number"
)
val revealElement = revealContainer.create(context = this, input = cardNumberReveal)
Expand Down Expand Up @@ -1756,7 +1756,7 @@ val errorTextStyles = Styles(base = baseTextStyle)

// Create Reveal Elements — no redaction on individual elements
val cardNumberInput = RevealElementInput(
token = "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
token = "<TOKEN_2>",
inputStyles = inputStyles,
labelStyles = labelStyles,
errorTextStyles = errorTextStyles,
Expand All @@ -1767,7 +1767,7 @@ val cardNumberInput = RevealElementInput(
val cardNumberElement = container.create(context = this, input = cardNumberInput)

val nameInput = RevealElementInput(
token = "89024714-6a26-4256-b9d4-55ad69aa4047",
token = "<TOKEN_3>",
inputStyles = inputStyles,
labelStyles = labelStyles,
errorTextStyles = errorTextStyles,
Expand Down Expand Up @@ -1803,7 +1803,7 @@ The `records` list contains both successful and failed tokens. Each record carri
{
"records": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
"token": "<TOKEN_2>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -1812,8 +1812,8 @@ The `records` list contains both successful and failed tokens. Each record carri
"httpCode": 200
},
{
"token": "89024714-6a26-4256-b9d4-55ad69aa4047",
"error": "Detokenize failed. Token 89024714-6a26-4256-b9d4-55ad69aa4047 is invalid. Specify a valid token.",
"token": "<TOKEN_3>",
"error": "Detokenize failed. Token <TOKEN_3> is invalid. Specify a valid token.",
"httpCode": 404
}
]
Expand Down Expand Up @@ -1864,7 +1864,7 @@ container.collect(object : CollectCallback {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
"tokens": {
"card_number": [
{ "token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75", "tokenGroupName": "deterministic_string" }
{ "token": "<TOKEN_2>", "tokenGroupName": "deterministic_string" }
]
},
"httpCode": 200
Expand Down Expand Up @@ -1963,7 +1963,7 @@ Both success and partial-error records are delivered as `CollectRecord` in the s
"skyflowId": "f1714ef8-8deb-489a-a18d-77e0e007f403",
"tokens": {
"cardNumber": [
{"token": "f3907186-e7e2-466f-91e5-48e12c2bcbc1", "tokenGroupName": "deterministic_string"}
{"token": "<TOKEN_1>", "tokenGroupName": "deterministic_string"}
]
},
"httpCode": 200
Expand Down Expand Up @@ -2054,7 +2054,7 @@ data class RevealRecord(
{
"records": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
"token": "<TOKEN_2>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -2071,7 +2071,7 @@ data class RevealRecord(
{
"records": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
"token": "<TOKEN_2>",
"tokenGroupName": "deterministic_string",
"metadata": {
"skyflowId": "3ac0424e-fe45-43a9-9193-2e6d2913cbd2",
Expand All @@ -2080,8 +2080,8 @@ data class RevealRecord(
"httpCode": 200
},
{
"token": "a4b24714-6a26-4256-b9d4-55ad69aa4047",
"error": "Tokens not found for a4b24714-6a26-4256-b9d4-55ad69aa4047",
"token": "<TOKEN_4>",
"error": "Tokens not found for <TOKEN_4>",
"httpCode": 404
}
]
Expand Down
24 changes: 12 additions & 12 deletions skyvault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ container.collect(callback = insertCallback, options = collectOptions)
"fields": {
"skyflow_id": "431eaa6c-5c15-4513-aa15-29f50babe882",
"card_number": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
"first_name": "131e70dc-6f76-4319-bdd3-96281e051051"
"first_name": "<TOKEN_2>"
}
}
]
Expand Down Expand Up @@ -1928,7 +1928,7 @@ container.collect(callback = insertCallback, options = collectOptions)
"fields": {
"skyflow_id": "431eaa6c-5c15-4513-aa15-29f50babe882",
"card_number": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
"cardholder_name": "131e70dc-6f76-4319-bdd3-96281e051051",
"cardholder_name": "<TOKEN_2>",
"cvv": "098834fe-de99-4fc8-abdf-88c18a28a2cf"
}
}
Expand All @@ -1946,7 +1946,7 @@ container.collect(callback = insertCallback, options = collectOptions)
"fields": {
"skyflow_id": "431eaa6c-5c15-4513-aa15-29f50babe882",
"card_number": "f3907186-e7e2-466f-91e5-48e12c2bcbc1",
"cardholder_name": "131e70dc-6f76-4319-bdd3-96281e051051",
"cardholder_name": "<TOKEN_2>",
"cvv": "098834fe-de99-4fc8-abdf-88c18a28a2cf"
}
}
Expand Down Expand Up @@ -2260,7 +2260,7 @@ For non-PCI use-cases, retrieving data from the vault and revealing it in the mo
val records = JSONObject()
val recordsArray = JSONArray()
val recordObj = JSONObject()
recordObj.put("token", "45012507-f72b-4f5c-9bf9-86b133bae719")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.MASKED)
recordsArray.put(recordObj)
records.put("records", recordsArray)
Expand All @@ -2272,7 +2272,7 @@ For non-PCI use-cases, retrieving data from the vault and revealing it in the mo
{
"records": [
{
"token": "131e70dc-6f76-4319-bdd3-96281e051051",
"token": "<TOKEN_2>",
"value": "j***oe"
}
]
Expand Down Expand Up @@ -2464,7 +2464,7 @@ For non-PCI use-cases, retrieving data from the vault and revealing it in the mo
{
"fields": {
"card_number": "9802-3257-3113-0294",
"expiry_date": "45012507-f72b-4f5c-9bf9-86b133bae719",
"expiry_date": "<TOKEN_1>",
"fullname": "131e2507-f72b-4f5c-9bf9-86b133bae719",
},
"table": "cards"
Expand All @@ -2473,7 +2473,7 @@ For non-PCI use-cases, retrieving data from the vault and revealing it in the mo
"fields": {
"card_number": "0294-3213-3157-9802",
"expiry_date": "131e2507-f72b-4f5c-9bf9-86b133bae719",
"fullname": "45012507-f72b-4f5c-9bf9-86b133bae719",
"fullname": "<TOKEN_1>",
},
"table": "cards"
}
Expand Down Expand Up @@ -2647,7 +2647,7 @@ val errorTextStyles = Skyflow.Styles(base = baseTextStyle)

//Create Reveal Elements
val cardNumberInput = Skyflow.RevealElementInput(
token = "b63ec4e0-bbad-4e43-96e6-6bd50f483f75",
token = "<TOKEN_3>",
redaction = RedactionType.MASKED,
inputStyles = inputStyles,
labelStyles = labelStyles,
Expand All @@ -2659,7 +2659,7 @@ val cardNumberInput = Skyflow.RevealElementInput(
val cardNumberElement = container.create(context = Context, input = cardNumberInput)

val nameInput = Skyflow.RevealElementInput(
token = "89024714-6a26-4256-b9d4-55ad69aa4047",
token = "<TOKEN_4>",
redaction = RedactionType.DEFAULT,
inputStyles = inputStyles,
labelStyles = labelStyles,
Expand Down Expand Up @@ -2704,15 +2704,15 @@ The response below shows that some tokens assigned to the reveal elements get re
{
"success": [
{
"token": "b63ec4e0-bbad-4e43-96e6-6bd50f483f75"
"token": "<TOKEN_3>"
}
],
"errors": [
{
"id": "89024714-6a26-4256-b9d4-55ad69aa4047",
"id": "<TOKEN_4>",
"error": {
"code": 404,
"description": "Tokens not found for 89024714-6a26-4256-b9d4-55ad69aa4047"
"description": "Tokens not found for <TOKEN_4>"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions skyvault/src/androidTest/java/com/Skyflow/GetTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GetTest {
val revealRecords = JSONObject()
val revealRecordsArray = JSONArray()
val recordObj = JSONObject()
recordObj.put("token", "895630c8-cb87-4876-8df5-0a785ebfcdda")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.PLAIN_TEXT)
revealRecordsArray.put(recordObj)
revealRecords.put("records", revealRecordsArray)
Expand Down Expand Up @@ -66,7 +66,7 @@ class GetTest {
val revealRecords = JSONObject()
val revealRecordsArray = JSONArray()
val recordObj = JSONObject()
recordObj.put("token", "895630c8-cb87-4876-8df5-0a785ebfcdda")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.PLAIN_TEXT)
revealRecordsArray.put(recordObj)
revealRecords.put("records", revealRecordsArray)
Expand Down Expand Up @@ -94,7 +94,7 @@ class GetTest {
val revealRecords = JSONObject()
val revealRecordsArray = JSONArray()
val recordObj = JSONObject()
recordObj.put("token", "895630c8-cb87-4876-8df5-0a785ebfcdda")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.PLAIN_TEXT)
revealRecordsArray.put(recordObj)
revealRecords.put("records", revealRecordsArray)
Expand Down
6 changes: 3 additions & 3 deletions skyvault/src/test/java/com/Skyflow/DetokenizeTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DetokenizeTests {
val detokenizeRecordsArray = JSONArray()

val recordObj = JSONObject()
recordObj.put("token", "895630c8-cb87-4876-8df5-0a785ebfcdda")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.PLAIN_TEXT)

detokenizeRecordsArray.put(recordObj)
Expand Down Expand Up @@ -94,7 +94,7 @@ class DetokenizeTests {
val detokenizeRecordsArray = JSONArray()

val recordObj = JSONObject()
recordObj.put("token", "895630c8-cb87-4876-8df5-0a785ebfcdda")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.PLAIN_TEXT)

detokenizeRecordsArray.put(recordObj)
Expand Down Expand Up @@ -129,7 +129,7 @@ class DetokenizeTests {
val detokenizeRecordsArray = JSONArray()

val recordObj = JSONObject()
recordObj.put("token", "895630c8-cb87-4876-8df5-0a785ebfcdda")
recordObj.put("token", "<TOKEN_1>")
recordObj.put("redaction", RedactionType.PLAIN_TEXT)

detokenizeRecordsArray.put(recordObj)
Expand Down
Loading
Loading