|
|
Page | 32/54 | Date | 28.01.2017 | Size | 1.78 Mb. | | #8871 |
| Retrieve the file of the Pii identified by the given uniqueId and Owner
/pii
|
GET
|
|
Parameter:
|
uniqueId, owner
|
Content:
|
Return:
|
multipart/mixed
|
Retrieve the file of the Pii identified by the given UniaueId and Owner.
|
|
Return
|
200
|
If file found
|
|
|
404
|
If file not found
|
|
| Store a Pii (file) with its StickyPolicy
/pii
|
PUT
|
|
Parameter:
|
Content:
|
application/x-www-form-urlencoded
|
Return:
|
application/json
|
file
|
File
|
{"uniqueId" : uid }
|
stickyPolicy
|
a PPL StickyPolicy as XML String
|
owner
|
String
|
Store a Pii (file) with its StickyPolicy
|
|
Return
|
201
|
Pii successfully stored
|
|
500
|
Pii not stored, an error occured
|
| Store a Pii with its StickyPolicy
/pii
|
PUT
|
|
Parameter:
|
Content:
|
multipart/form-data
|
Return:
|
application/json
|
name
|
string
|
{"uniqueId" : uid }
|
Value
|
string
|
stickyPolicy
|
a PPL StickyPolicy as XML String
|
owner
|
String
|
Store a Pii with its StickyPolicy
|
|
Return
|
201
|
Pii successfully stored
|
|
500
|
Pii not stored, an error occured
|
| Update a Pii (File) and its StickyPolicy identified by the given UniqueId and Owner
/pii
|
POST
|
|
Parameter:
|
Content:
|
multipart/form-data
|
Return:
|
application/json
|
uniqueId
|
Long
|
{"uniqueId" : uid }
|
file
|
File
|
stickyPolicy
|
a PPL StickyPolicy as XML String
|
owner
|
String
|
Update a Pii (File) and its StickyPolicy identified by the given UniqueId and Owner
|
|
Return
|
200
|
Pii successfully updated
|
|
500
|
Pii not updated, an error occured
|
|
404
|
Pii not found
|
| Update a Pii and its StickyPolicy identified by the given UniqueId and Owner
/pii
|
POST
|
|
Parameter:
|
Content:
|
application/x-www-form-urlencoded
|
Return:
|
application/json
|
uniqueId
|
Long
|
{"uniqueId" : uid }
|
Name
|
String
|
Value
|
String
|
stickyPolicy
|
a PPL StickyPolicy as XML String
|
owner
|
String
|
Update a Pii and its StickyPolicy identified by the given UniqueId and Owner
|
|
Return
|
200
|
Pii successfully updated
|
|
500
|
Pii not updated, an error occured
|
|
404
|
Pii not found
|
| Delete a Pii identified by the given UniqueId and Owner
/pii/delete
|
POST
|
|
Parameter:
|
Content:
|
application/json
|
Return:
|
application/json
|
uniqueId
|
Long
|
{“deleted” : boolean}
|
owner
|
String
|
Delete a Pii identified by the given UniqueId and Owner
|
|
Return
|
200
|
See response body
| Request files (Pii) identified by its name (resource) for the user (subject)
/downstreamusage/file
|
POST
|
|
Parameter:
|
Content:
|
application/json
|
Return:
|
multipart/mixed
|
Subject
|
String
|
List of files (can be empty)
|
Resource
|
String
|
Request files (Pii) identified by its name (resource) for the user (subject)
|
|
Return
|
200
|
See response body
| Request Piis identified by its name (resource) for the user (subject)
/downstreamusage/pii
|
POST
|
|
Parameter:
|
Content:
|
application/json
|
Return:
|
application/json
|
Subject
|
String
|
Items: [Name, Value]
|
Resource
|
String
|
Request Piis identified by its name (resource) for the user (subject)
|
|
Return
|
200
|
See response body
| Identity Based Encryption Feature API Request certificate by the given informations ( commonName, Alias(email), organization, organizationalUnitName)
/certificate/request
|
POST
|
|
Parameter:
|
Content:
|
Multipart/form-data
|
Return:
|
Text/Plain
|
commonName
|
String
|
Generated certificate path
|
Alias
|
String
|
Organization
|
String
|
organisationalUnitName
|
String
|
Request certificate by the given informations ( commonName, Alias(email), organization, organizationalUnitName)
|
|
Return
|
200
|
If certificate successfully created
|
400
|
If parameter is missing
| Decrypt or encrypt the inputStream / File for the given alias,mode € = { encrypt, decrypt }
/cipher/{mode}
|
POST
|
|
Parameter:
|
Content:
|
Multipart/form-data
|
Return:
|
Application/mixed
|
inputStream
|
inputStream
|
Decrypted or Encrypted file
|
fileName
|
String
|
alias
|
String
|
mode
|
String
|
Decrypt or encrypt the inputStream for the given alias, mode € = { encrypt, decrypt }
|
|
Return
|
200
|
If operation successfully executed
|
400
|
If one parameter is wrong
|
500
|
If input/output exception
| Keypair create a key depending on the keyType € = {publickey, privatekey, keypair}
/keypair/{keyType}
|
POST
|
|
Parameter:
|
Content:
|
Multipart/form-data
|
Return:
|
Application/json
|
alias
|
String
|
Request key type
|
keyType
|
String
|
Keypair create a key depending on the keyType € = {publickey, privatekey, keypair}
|
|
Return
|
200
|
If key successfully created
|
406
|
If alias or keyType is wrong
|
400
|
If keyTpe don’t exist
| Parameters returned can be used to regenerate the cipher from another application
/controller/
|
POST
|
|
Empty Parameter:
|
Return:
|
Multipart/form-data
|
|
|
q
|
String
|
|
|
l
|
String
|
|
|
px
|
String
|
|
|
py
|
String
|
|
|
pubx
|
String
|
|
|
puby
|
String
|
|
|
char
|
String
|
|
|
Parameters returned can be used to regenerate the cipher from another application
|
|
Return
|
200
|
Always success there is no treatment to handle
|
Share with your friends: |
The database is protected by copyright ©ininet.org 2024
send message
|
|