public interface PublicKeyService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<VirgilCard> |
createCard(VirgilCardTemplate template)
Create new Virgil Card.
|
retrofit2.Call<Void> |
delete(String id,
String requestSingVCID,
DeleteRequest deleteRequest)
Delete Virgil Card.
|
retrofit2.Call<Void> |
deleteKey(String id,
Identities identities)
Revoke a Public Key endpoint.
|
retrofit2.Call<VirgilCard> |
getCard(String id)
Returns the information about the Virgil Card by the ID.
|
retrofit2.Call<PublicKeyInfo> |
getKey(String id)
Returns the information about the Public Key by the ID.
|
retrofit2.Call<List<VirgilCard>> |
search(SearchCriteria searchCriteria)
Performs the search of a private application's Virgil Cards by search
criteria:
|
retrofit2.Call<List<VirgilCard>> |
searchApp(SearchCriteria searchCriteria)
Performs the global search for the applications' Virgil Cards.
|
retrofit2.Call<List<VirgilCard>> |
searchEmail(SearchCriteria searchCriteria)
Performs the global search for the emails' Virgil Cards.
|
@POST(value="/v3/virgil-card") retrofit2.Call<VirgilCard> createCard(@Body VirgilCardTemplate template)
template - the template of created Virgil Card.VirgilCard,
VirgilCardTemplate,
Call@HTTP(method="DELETE",
path="/v3/virgil-card/{virgil-card-id}",
hasBody=true)
retrofit2.Call<Void> delete(@Path(value="virgil-card-id")
String id,
@Header(value="X-VIRGIL-REQUEST-SIGN-VIRGIL-CARD-ID")
String requestSingVCID,
@Body
DeleteRequest deleteRequest)
id - the Virgil Card's identifier.requestSingVCID - the X-VIRGIL-REQUEST-SIGN-VIRGIL-CARD-ID header's
value which is the same as Virgil Card's identifier.deleteRequest - the delete request data.DeleteRequest,
Call@DELETE(value="/v3/public-key/{public-key-id}")
retrofit2.Call<Void> deleteKey(@Path(value="public-key-id")
String id,
Identities identities)
id - the Public Key's ID.identities - the removed identities.Call,
Identities@GET(value="/v3/virgil-card/{virgil-card-id}")
retrofit2.Call<VirgilCard> getCard(@Path(value="virgil-card-id")
String id)
id - the Virgil Card's identifier.Call@GET(value="/v3/public-key/{public-key-id}")
retrofit2.Call<PublicKeyInfo> getKey(@Path(value="public-key-id")
String id)
id - the PublicKey's identifier.Call,
PublicKeyInfo@POST(value="/v3/virgil-card/actions/search") retrofit2.Call<List<VirgilCard>> search(@Body SearchCriteria searchCriteria)
searchCriteria - the criteria which used for Virgil Cards filtering during
search.Call,
SearchCriteria,
VirgilCard@POST(value="/v3/virgil-card/actions/search/app") retrofit2.Call<List<VirgilCard>> searchApp(@Body SearchCriteria searchCriteria)
searchCriteria - the criteria which used for Virgil Cards filtering during
search.Call,
SearchCriteria,
VirgilCard@POST(value="/v3/virgil-card/actions/search/email") retrofit2.Call<List<VirgilCard>> searchEmail(@Body SearchCriteria searchCriteria)
searchCriteria - the criteria which used for Virgil Cards filtering during
search.Call,
SearchCriteria,
VirgilCardCopyright © 2016. All rights reserved.