public class VirgilClient extends Object
| Constructor and Description |
|---|
VirgilClient(String accessToken)
Create a new instance of
VirgilClient |
VirgilClient(VirgilClientContext context)
Create a new instance of
VirgilClient |
| Modifier and Type | Method and Description |
|---|---|
Card |
createCard(CreateCardRequest request)
Register a new card.
|
Card |
getCard(String cardId)
Get card by identifier.
|
void |
revokeCard(RevokeCardRequest request)
Revoke existing card.
|
List<Card> |
searchCards(SearchCriteria criteria)
Search cards by criteria.
|
void |
setCardValidator(CardValidator cardValidator)
Sets the card validator.
|
public VirgilClient(String accessToken)
VirgilClientaccessToken - the access token.public VirgilClient(VirgilClientContext context)
VirgilClientcontext - the virgil client context.public Card createCard(CreateCardRequest request) throws VirgilServiceException
request - the create card request.VirgilServiceException - if an error occurred.public Card getCard(String cardId)
cardId - the card identifier.public void revokeCard(RevokeCardRequest request)
request - the revoke card request.public List<Card> searchCards(SearchCriteria criteria)
criteria - the criteria for search.public void setCardValidator(CardValidator cardValidator)
cardValidator - the cardValidator to setCopyright © 2016. All rights reserved.