public class PublicKeyClient extends AbstractClient
| Modifier and Type | Field and Description |
|---|---|
static String |
PUBLIC_KEY_BASE_URL |
accessToken, builder, httpClient| Constructor and Description |
|---|
PublicKeyClient(String accessToken)
Create a new instance of PublicKeyClient.
|
PublicKeyClient(String baseUrl,
String accessToken)
Create a new instance of PublicKeyClient.
|
| Modifier and Type | Method and Description |
|---|---|
VirgilCard |
createCard(VirgilCardTemplate template,
PrivateKey privateKey)
Create new Virgil Card.
|
VirgilCard |
createCard(VirgilCardTemplate template,
PrivateKey privateKey,
Password password)
Create new Virgil Card.
|
void |
createCard(VirgilCardTemplate template,
PrivateKey privateKey,
Password password,
ResponseCallback<VirgilCard> callback)
Create new Virgil Card asynchronously.
|
void |
createCard(VirgilCardTemplate template,
PrivateKey privateKey,
ResponseCallback<VirgilCard> callback)
Create new Virgil Card asynchronously.
|
<S> S |
createService(Class<S> serviceClass)
Create new instance of Retrofit service.
|
<S> S |
createService(Class<S> serviceClass,
PrivateKey privateKey)
Create new instance of Retrofit service.
|
<S> S |
createService(Class<S> serviceClass,
PrivateKey privateKey,
Password password)
Create new instance of Retrofit service.
|
void |
deleteCard(ValidatedIdentity identity,
String signerCardId,
PrivateKey privateKey)
Revoke a Virgil Card endpoint.
|
void |
deleteCard(ValidatedIdentity identity,
String cardId,
PrivateKey privateKey,
Password password)
Revoke a Virgil Card endpoint.
|
void |
deleteCard(ValidatedIdentity identity,
String cardId,
PrivateKey privateKey,
Password password,
VoidResponseCallback callback)
Revoke a Virgil Card endpoint.
|
void |
deleteCard(ValidatedIdentity identity,
String cardId,
PrivateKey privateKey,
VoidResponseCallback callback)
Revoke a Virgil Card endpoint.
|
void |
deleteKey(String publicKeyId,
List<ValidatedIdentity> identities,
VoidResponseCallback callback)
Revoke a Public Key endpoint.
|
VirgilCard |
getCard(String cardId)
Returns the information about the Virgil Card by the ID.
|
void |
getCard(String cardId,
ResponseCallback<VirgilCard> callback)
Returns the information about the Virgil Card by the ID.
|
PublicKeyInfo |
getKey(String publicKeyId)
Returns the information about the Public Key by the ID.
|
void |
getKey(String publicKeyId,
ResponseCallback<PublicKeyInfo> callback)
Returns the information about the Public Key by the ID.
|
List<VirgilCard> |
search(SearchCriteria searchCriteria)
Performs the search by search criteria.
|
void |
search(SearchCriteria searchCriteria,
ResponseCallback<List<VirgilCard>> callback)
Performs the asynchronous search by search criteria.
|
handleResponsepublic static final String PUBLIC_KEY_BASE_URL
public PublicKeyClient(String accessToken)
accessToken - the access token.public <S> S createService(Class<S> serviceClass)
createService in class AbstractClientserviceClass - Retrofit service classpublic <S> S createService(Class<S> serviceClass, PrivateKey privateKey)
serviceClass - Retrofit service classprivateKey - the PrivateKey used for request signingPrivateKeypublic <S> S createService(Class<S> serviceClass, PrivateKey privateKey, Password password)
serviceClass - Retrofit service classprivateKey - the PrivateKey used for request signingpassword - the Password used for PrivateKey protectionPrivateKey,
Passwordpublic void createCard(VirgilCardTemplate template, PrivateKey privateKey, ResponseCallback<VirgilCard> callback)
template - the template of created Virgil CardprivateKey - the PrivateKey used for request signingcallback - public void createCard(VirgilCardTemplate template, PrivateKey privateKey, Password password, ResponseCallback<VirgilCard> callback)
template - the template of created Virgil CardprivateKey - the PrivateKey used for request signingpassword - the Password used for PrivateKey protectioncallback - public VirgilCard createCard(VirgilCardTemplate template, PrivateKey privateKey)
template - the template of created Virgil CardprivateKey - the PrivateKey used for request signingpublic VirgilCard createCard(VirgilCardTemplate template, PrivateKey privateKey, Password password)
template - the template of created Virgil CardprivateKey - the PrivateKey used for request signingpassword - the Password used for PrivateKey protectionpassword - public void deleteKey(String publicKeyId, List<ValidatedIdentity> identities, VoidResponseCallback callback) throws IOException
publicKeyId - the Public Key's ID.identities - callback - IOExceptionpublic VirgilCard getCard(String cardId)
cardId - the Virgil Card's ID.public void getCard(String cardId, ResponseCallback<VirgilCard> callback)
cardId - the Virgil Card's ID.callback - public PublicKeyInfo getKey(String publicKeyId)
publicKeyId - the Public Key's ID.public void getKey(String publicKeyId, ResponseCallback<PublicKeyInfo> callback)
publicKeyId - the Public Key's ID.callback - public List<VirgilCard> search(SearchCriteria searchCriteria)
searchCriteria - the criteria to searchpublic void search(SearchCriteria searchCriteria, ResponseCallback<List<VirgilCard>> callback)
searchCriteria - the criteria to searchcallback - public void deleteCard(ValidatedIdentity identity, String signerCardId, PrivateKey privateKey)
identity - signerCardId - privateKey - the PrivateKey used for request signingpublic void deleteCard(ValidatedIdentity identity, String cardId, PrivateKey privateKey, Password password)
identity - cardId - privateKey - the PrivateKey used for request signingpassword - the Password used for PrivateKey protectionpublic void deleteCard(ValidatedIdentity identity, String cardId, PrivateKey privateKey, VoidResponseCallback callback)
identity - cardId - privateKey - the PrivateKey used for request signingcallback - public void deleteCard(ValidatedIdentity identity, String cardId, PrivateKey privateKey, Password password, VoidResponseCallback callback)
identity - cardId - privateKey - the PrivateKey used for request signingpassword - the Password used for PrivateKey protectioncallback - Copyright © 2016. All rights reserved.