HID APPROVE SDK  6.0
HID Approve SDK for Android
com.hidglobal.ia.service.transaction.Container Interface Reference

Encapsulates an active service container instance. More...

Public Member Functions

Key addKey (KeySpec keySpec, ProtectionPolicy protectionPolicy, char[] password) throws InternalException, UnsupportedDeviceException, LostCredentialsException, AuthenticationException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException, PasswordExpiredException, InvalidParameterException
 
Key [] findKeys (Parameter[] filter) throws LostCredentialsException, InternalException, UnsupportedDeviceException, InvalidParameterException
 
Transaction generateAuthenticationRequest (String message, KeyId signingKey) throws InternalException, InvalidParameterException, ServerUnsupportedOperationException
 
Date getCreationDate ()
 
Date getExpiryDate ()
 
int getId ()
 
String getName ()
 
Date getOriginalCreationDate ()
 
char [] getProperty (String param) throws InternalException, UnsupportedDeviceException, LostCredentialsException, InvalidParameterException
 
ProtectionPolicy getProtectionPolicy () throws UnsupportedDeviceException, InternalException, LostCredentialsException
 
Date getRenewalDate ()
 
String getServerURL ()
 
String getUserId ()
 
boolean isFIPSModeEnabled () throws InternalException
 
boolean isRenewable (char[] sessionPassword)
 
void renew (ContainerRenewal config, char[] sessionPassword, EventListener eventListener) throws PasswordExpiredException, UnsupportedDeviceException, InternalException, AuthenticationException, RemoteException, UnsafeDeviceException, ServerProtocolException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, LostCredentialsException, PasswordRequiredException, CredentialsExpiredException, ServerUnsupportedOperationException, GooglePlayServicesObsoleteException, PasswordCancelledException, ServerOperationFailedException, InvalidParameterException, InvalidPasswordException
 
char [][] retrieveTransactionsIds (char[] sessionPassword, Parameter[] params) throws RemoteException,UnsupportedDeviceException, InternalException, FingerprintAuthenticationRequiredException, InvalidParameterException
 
void setConnectionConfiguration (ConnectionConfiguration connectionConfiguration) throws InvalidParameterException
 
void setName (String name) throws UnsupportedDeviceException, LostCredentialsException, InternalException, InvalidParameterException
 
void setProperty (String param, char[] value) throws InternalException, UnsupportedDeviceException, LostCredentialsException, InvalidParameterException
 
void updateDeviceInfo (String name, char[] value, char[] password, Parameter[] params) throws RemoteException, AuthenticationException, UnsupportedDeviceException, InternalException, LostCredentialsException, com.hidglobal.ia.service.exception.FingerprintAuthenticationRequiredException, ServerOperationFailedException, InvalidParameterException
 

Detailed Description

Encapsulates an active service container instance.

Since
2.0

Member Function Documentation

◆ addKey()

Adds a key to the container.

Parameters
keySpecthe specification containing the key data (expect JWS formatted key).
protectionPolicyThe protection policy Id for that key.
passwordThe password protecting that key. It can be set to null if the protection policy does not require a password to be set.
Returns
Key object
Exceptions
AuthenticationExceptionif password is incorrect.
FingerprintAuthenticationRequiredExceptionif fingerprint authentication is required by policy.
FingerprintNotEnrolledExceptionif fingerprint enrollment is required.
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
PasswordExpiredExceptionif expired password is given (changePassword required).
PasswordRequiredExceptionif required password was not provided.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ findKeys()

Key [] com.hidglobal.ia.service.transaction.Container.findKeys ( Parameter []  filter) throws LostCredentialsException, InternalException, UnsupportedDeviceException, InvalidParameterException

Retrieves a key handle from the secure key store based on input parameter filter.

Parameters
filterArray of Parameter objects with key property name and value.

Filter parameter can be defined with following id:

Returns
Key array of matching key items. Any provisioned asymmetric keys will be represented as a KeyPair object.
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ generateAuthenticationRequest()

Transaction com.hidglobal.ia.service.transaction.Container.generateAuthenticationRequest ( String  message,
KeyId  signingKey 
) throws InternalException, InvalidParameterException, ServerUnsupportedOperationException

Generates a Direct Client Signature (DCS) transaction for approval

Parameters
messageThe logon or operation validation message to be displayed with the transaction for approval (expected max 1000 characters)
signingKeyThe signing key to be used for approval of the transaction
Returns
The generated transaction object for signing.
Exceptions
InternalExceptionif server responds with any other error.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
ServerUnsupportedOperationExceptionif the server does not support direct client signature.

◆ getCreationDate()

Date com.hidglobal.ia.service.transaction.Container.getCreationDate ( )

Gets the activation or renewal creation date for this container.

Returns
the creation date

◆ getExpiryDate()

Date com.hidglobal.ia.service.transaction.Container.getExpiryDate ( )

Gets the server defined expiration date this container.

Returns
the expire date

◆ getId()

int com.hidglobal.ia.service.transaction.Container.getId ( )

Get the identifier of this container.

Returns
The identifier.

◆ getName()

String com.hidglobal.ia.service.transaction.Container.getName ( )

Gets the Friendly Name associated with this container.

Returns
The String name.

◆ getOriginalCreationDate()

Date com.hidglobal.ia.service.transaction.Container.getOriginalCreationDate ( )

Gets the first creation date of this container.

Returns
the first creation date

◆ getProperty()

char [] com.hidglobal.ia.service.transaction.Container.getProperty ( String  param) throws InternalException, UnsupportedDeviceException, LostCredentialsException, InvalidParameterException

Returns container property.

Parameters
paramproperty name

Supported property names:

Returns
The property value
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ getProtectionPolicy()

ProtectionPolicy com.hidglobal.ia.service.transaction.Container.getProtectionPolicy ( ) throws UnsupportedDeviceException, InternalException, LostCredentialsException

Gets the protection policy associated with container.

Returns
the ProtectionPolicy used to protect the key
Exceptions
InternalExceptionif an unexpected error occurred.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ getRenewalDate()

Date com.hidglobal.ia.service.transaction.Container.getRenewalDate ( )

Gets the renewal date limit for this container to remain fully functional (support is limited or not working after this date).

Returns
the renewal date

◆ getServerURL()

String com.hidglobal.ia.service.transaction.Container.getServerURL ( )

Gets the server URL associated with this container.

Returns
The String URL.

◆ getUserId()

String com.hidglobal.ia.service.transaction.Container.getUserId ( )

Gets the identifier of the user for this container.

Returns
the identifier

◆ isFIPSModeEnabled()

boolean com.hidglobal.ia.service.transaction.Container.isFIPSModeEnabled ( ) throws InternalException

Checks the container if FIPS strict mode is enforced.

Returns
Returns true if the FIPS strict mode is enabled.
Exceptions
InternalExceptionif an unexpected error occurred.

◆ isRenewable()

boolean com.hidglobal.ia.service.transaction.Container.isRenewable ( char []  sessionPassword)

Check if the container can be renewed

Parameters
sessionPasswordtransaction protection key password (can be null if not required by the policy)
Returns
true if renewable.

◆ renew()

Triggers the container service key renewal process with the server for all container keys.

Parameters
configContainerRenewal structure containing configuration
sessionPasswordtransaction protection key password (can be null if not required by the policy)
eventListenerEventListener instance for progress messages and password prompt events.
Exceptions
AuthenticationExceptionif password is incorrect.
CredentialsExpiredExceptionif the transaction protection key is expired and renewal is not possible.
FingerprintAuthenticationRequiredExceptionif fingerprint authentication is required by policy.
FingerprintNotEnrolledExceptionif fingerprint enrollment is required.
GooglePlayServicesObsoleteExceptionif Google Play Services is out of date.
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
PasswordCancelledExceptionif the password prompt dialog has been canceled by the user.
PasswordExpiredExceptionif expired password is given (changePassword required).
PasswordRequiredExceptionif required password was not provided.
RemoteExceptionif server responds with any other error.
ServerOperationFailedExceptionif the server encounters a failure for the operation requested.
ServerUnsupportedOperationExceptionif the server does not support the operation requested.
UnsafeDeviceExceptionif the mobile is not protected by a password.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ retrieveTransactionsIds()

char [][] com.hidglobal.ia.service.transaction.Container.retrieveTransactionsIds ( char []  sessionPassword,
Parameter []  params 
) throws RemoteException,UnsupportedDeviceException, InternalException, FingerprintAuthenticationRequiredException, InvalidParameterException

Retrieve a list of pending transaction IDs from the server for the container.

Parameters
sessionPasswordtransaction protection key password (can be null if not required by the policy)
paramsparameters empty (reserved for future use)
Returns
the Array of transaction id values.
Exceptions
FingerprintAuthenticationRequiredExceptionif fingerprint authentication is required by policy.
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
RemoteExceptionif server responds with any other error.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ setConnectionConfiguration()

void com.hidglobal.ia.service.transaction.Container.setConnectionConfiguration ( ConnectionConfiguration  connectionConfiguration) throws InvalidParameterException

Sets connection configuration.

Parameters
connectionConfigurationconnection configuration, see ConnectionConfiguration for details.
Exceptions
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.

◆ setName()

void com.hidglobal.ia.service.transaction.Container.setName ( String  name) throws UnsupportedDeviceException, LostCredentialsException, InternalException, InvalidParameterException

Sets the Friendly Name associated with this container.

Parameters
namecontainer friendly name. (expected max 128 characters)
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ setProperty()

void com.hidglobal.ia.service.transaction.Container.setProperty ( String  param,
char []  value 
) throws InternalException, UnsupportedDeviceException, LostCredentialsException, InvalidParameterException

Overrides a container property.

Parameters
paramproperty name.

Supported property names:

Parameters
valuenew value for property.
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
UnsupportedDeviceExceptionif device is not supported by policy.

◆ updateDeviceInfo()

Updates container information.

This method is used by the application to notify of a change in one of the externally generated device attributes.

Parameters
namedeviceInfo property to update.

Supported name attributes:

  • SDKConstants.DEVICE_INFO_PUSHID: update of the 'pushId', set up at provisioning and used by the server to notify the correct phone. Value may be null or empty to disable push notification for device.
Parameters
valuethe new value to replace.
passwordtransaction protection key password (can be null if not required by the policy)
paramsempty (reserved for future use)
Exceptions
AuthenticationExceptionif password is incorrect.
FingerprintAuthenticationRequiredExceptionif fingerprint authentication is required by policy.
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
RemoteExceptionif server responds with any other error.
ServerOperationFailedExceptionif the server encounters a failure for the operation requested.
UnsupportedDeviceExceptionif device is not supported by policy.