public final class CapFactory
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CapFactory() |
| Modifier and Type | Method and Description |
|---|---|
CapDevice |
createCapDevice(CapToken token)
Creates a Hardware or Software CAP device for the given CAP token.
|
CapDevice |
createSoftCapDevice(SoftCapToken token,
SoftCapSettings settings)
Creates a Software CAP device for the given token using the given
settings.
|
SoftCapSettings |
createSoftCapSettings()
Create a mutable copy of the default CAP settings used for soft tokens.
|
public final CapDevice createCapDevice(CapToken token) throws IdpException
Warning! Currently Mobile Protector SDK library only supports Software CAP device.
If the token is soft, i.e
Token.isSoft() is true,
the default CAP settings returned via createSoftCapSettings()
are used, otherwise the device settings are used.
token - the CAP tokenjava.lang.IllegalArgumentException - when the token type is unknownIdpException - this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException - when there is a database operation failure.PasswordManagerException - when the TOKEN domain is not logged in (using one of the
password managers)DeviceFingerprintException - when the token's fingerprint checksum does not match.public final SoftCapSettings createSoftCapSettings()
public final CapDevice createSoftCapDevice(SoftCapToken token, SoftCapSettings settings) throws IdpException
Token.isSoft() is true.token - the CAP tokensettings - the CAP settingsIdpException - this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException - when there is a database operation failure.DeviceFingerprintException - when the token's fingerprint checksum does not match.PasswordManagerException - when the TOKEN domain is not logged in (using one of the
password managers)