public interface Container
| Modifier and Type | Method and Description |
|---|---|
Key |
addKey(KeySpec keySpec,
ProtectionPolicy protectionPolicy,
char[] password)
Adds a key to the container.
|
boolean |
deleteKey(KeyId id,
Parameter[] params)
Deletes the key identified by its ID.
|
Key[] |
findKeys(Parameter[] filter)
Retrieves a key handle from the secure key store based on input parameter filter.
|
Date |
getCreationDate()
Gets the creation date for this container.
|
Date |
getExpiryDate()
Gets the expire date this container.
|
int |
getId()
Get the identifier of that container.
|
String |
getName()
Gets the Friendly Name associated with that container.
|
char[] |
getProperty(String param)
Returns container property.
|
ProtectionPolicy |
getProtectionPolicy()
Gets the protection policy associated with container.
|
Date |
getRenewalDate()
Gets the renewal date for this container.
|
String |
getServerURL()
Gets the server URL associated with that container.
|
String |
getUserId()
Gets the identifier of the user for this container.
|
boolean |
isFIPSModeEnabled()
Checks the container if FIPS strict mode is enforced.
|
boolean |
isRenewable(char[] sessionPassword)
Check if the container can be renewed
|
void |
renew(ContainerRenewal config,
char[] sessionPassword,
EventListener eventListener) |
char[][] |
retrieveTransactionsIds(char[] sessionPassword,
Parameter[] params)
Retrieve a list of pending transaction IDs from the container.
|
void |
setConnectionConfiguration(ConnectionConfiguration connectionConfiguration)
Sets connection configuration.
|
void |
setName(String name)
Sets the Friendly Name associated with that container.
|
void |
setProperty(String param,
char[] value)
Overrides a container property.
|
int getId()
String getServerURL()
String getName()
String getUserId()
Date getCreationDate()
Date getExpiryDate()
Date getRenewalDate()
boolean isRenewable(char[] sessionPassword)
sessionPassword - transaction protection key password (can be null if not required by the policy)void renew(ContainerRenewal config, char[] sessionPassword, EventListener eventListener) throws PasswordExpiredException, UnsupportedDeviceException, InternalException, AuthenticationException, InvalidPasswordException, RemoteException, UnsafeDeviceException, ServerProtocolException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, LostCredentialsException, PasswordRequiredException, CredentialsExpiredException, ServerUnsupportedOperationException, GooglePlayServicesObsoleteException, PasswordCancelledException, ServerOperationFailedException
config - ContainerRenewal structure containing configurationsessionPassword - transaction protection key password (can be null if not required by the policy)eventListener - EventListener instance for progress messages and password prompt events.PasswordExpiredException - if expired password is given (changePassword required).UnsupportedDeviceException - if device is not supported by policy.InternalException - if an unexpected error occurred.AuthenticationException - if password is incorrect.InvalidPasswordException - if password validation fails.RemoteException - if server responds with any other error.UnsafeDeviceException - if the mobile is not protected by a password.ServerProtocolException - if the server response provoked an unexpected error.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.LostCredentialsException - if provisioning key data has been corrupted or lost.PasswordRequiredException - if required password was not provided and cached password is not available.CredentialsExpiredException - if the transaction protection key is expired and renewal is not possible.ServerUnsupportedOperationException - if the server does not support the operation requested.GooglePlayServicesObsoleteException - if Google Play Services is out of date or not installed.PasswordCancelledException - if the password prompt dialog has been cancelled by the user.ServerOperationFailedException - if the server encounters a failure for the operation requested.Key[] findKeys(Parameter[] filter) throws LostCredentialsException, InternalException, UnsupportedDeviceException
filter - Array of Parameter objects with key property name and value.
The property name may be any of the following:
HID_KEY_PROPERTY_USAGE
HID_KEY_PROPERTY_LABEL
HID_KEY_PROPERTY_CREATE
HID_KEY_PROPERTY_EXPIRYLostCredentialsException - if provisioning key data has been corrupted or lost.InternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.boolean deleteKey(KeyId id, Parameter[] params) throws NotImplementedException
id - key identifier.params - Array of Parameter objects for any additional parameters.NotImplementedException - if the operation is not implemented and reserved for future use.char[] getProperty(String param) throws InternalException, UnsupportedDeviceException, InvalidPasswordException, AuthenticationException, LostCredentialsException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException
param - property name
Supported property names:
PROPERTY_CHANNEL
PROPERTY_DOMAIN
PROPERTY_APPCUSTOMIZATION
PROPERTY_SERIALNUMBER
PROPERTY_EXTERNALID
PROPERTY_TXURIInternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.InvalidPasswordException - if password validation fails.AuthenticationException - if password is incorrect.LostCredentialsException - if provisioning key data has been corrupted or lost.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.void setProperty(String param, char[] value) throws InternalException, UnsupportedDeviceException, LostCredentialsException, AuthenticationException, InvalidPasswordException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
param - property name.
Supported property names:
PROPERTY_TXURIvalue - new value for property.InternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.LostCredentialsException - if provisioning key data has been corrupted or lost.AuthenticationException - if password is incorrect.InvalidPasswordException - if password validation fails.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.PasswordRequiredException - if required password was not provided and cached password is not available.ProtectionPolicy getProtectionPolicy() throws UnsupportedDeviceException, InternalException, LostCredentialsException
UnsupportedDeviceException - if device is not supported by policy.InternalException - if an unexpected error occurred.LostCredentialsException - if provisioning key data has been corrupted or lost.char[][] retrieveTransactionsIds(char[] sessionPassword,
Parameter[] params)
throws RemoteException,
InternalException,
FingerprintAuthenticationRequiredException
sessionPassword - transaction protection key password (can be null if not required by the policy)params - Array of ParametersRemoteException - if server responds with any other error.InternalException - if an unexpected error occurred.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.void setConnectionConfiguration(ConnectionConfiguration connectionConfiguration)
connectionConfiguration - connection configurationvoid setName(String name) throws UnsupportedDeviceException, LostCredentialsException, AuthenticationException, InvalidPasswordException, InternalException, FingerprintAuthenticationRequiredException
name - container friendly name.UnsupportedDeviceException - if device is not supported by policy.LostCredentialsException - if provisioning key data has been corrupted or lost.AuthenticationException - if password is incorrect.InvalidPasswordException - if password validation fails.InternalException - if an unexpected error occurred.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.boolean isFIPSModeEnabled()
throws InternalException
InternalException - if an unexpected error occurred.Key addKey(KeySpec keySpec, ProtectionPolicy protectionPolicy, char[] password) throws InternalException, UnsupportedDeviceException, LostCredentialsException, AuthenticationException, InvalidPasswordException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
keySpec - The specification for the key.protectionPolicy - The protection policy for that key.password - The password protecting that key. It can be set to NULL if the protection policy does not require a password to be set.InternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.LostCredentialsException - if provisioning key data has been corrupted or lost.AuthenticationException - if password is incorrect.InvalidPasswordException - if password validation fails.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.PasswordRequiredException - if required password was not provided and cached password is not available.Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.