Package pt.gov.cartaodecidadao
Class PTEID_SigningDeviceFactory
java.lang.Object
pt.gov.cartaodecidadao.PTEID_SigningDeviceFactory
Singleton class - Factory used to obtain signing devices.
Optionally, opens a dialog to let user choose signing device type.
Optionally, opens a dialog to let user choose signing device type.
- Since:
- 3.8.0
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Obtain a signing device.
At least one of the parameters must be true.getSigningDevice(boolean allowCC) Obtain a signing device.
At least one of the parameters must be true.getSigningDevice(boolean allowCC, boolean allowCMD) Obtain a signing device.
At least one of the parameters must be true.static PTEID_SigningDeviceFactoryinstance()Return the singleton object
-
Method Details
-
delete
public void delete() -
instance
Return the singleton object- Throws:
PTEID_Exception
-
getSigningDevice
public PTEID_SigningDevice getSigningDevice(boolean allowCC, boolean allowCMD) throws PTEID_Exception Obtain a signing device.
At least one of the parameters must be true. Otherwise, PTEID_ExBadUsage is thrown.
If multiple types were allowed, this method opens a dialog to choose the signing device type.
- Parameters:
allowCC- allow to retrieve handle to PTEID_EIDCardallowCMD- allow to retrieve handle to PTEID_CMDSignatureDevice- Throws:
PTEID_Exception
-
getSigningDevice
Obtain a signing device.
At least one of the parameters must be true. Otherwise, PTEID_ExBadUsage is thrown.
If multiple types were allowed, this method opens a dialog to choose the signing device type.
- Parameters:
allowCC- allow to retrieve handle to PTEID_EIDCard- Throws:
PTEID_Exception
-
getSigningDevice
Obtain a signing device.
At least one of the parameters must be true. Otherwise, PTEID_ExBadUsage is thrown.
If multiple types were allowed, this method opens a dialog to choose the signing device type.
- Throws:
PTEID_Exception
-