public final class OathFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
OathFactory() |
Modifier and Type | Method and Description |
---|---|
GemaltoOathDevice |
createGemaltoOathDevice(OathToken token)
Creates a Hardware or Software Gemalto OATH device for the given OATH
token.
|
DcvOathDevice |
createSoftDcvOathDevice(OathToken token)
Creates a Hardware or Software DCV OATH device for the given OATH token.
|
DcvOathDevice |
createSoftDcvOathDevice(OathToken token,
SoftDcvOathSettings settings)
Creates a customized soft DCV OATH device using the specified settings.
|
SoftDcvOathSettings |
createSoftDcvOathSettings()
Creates a DCV OATH settings.
|
GemaltoOathDevice |
createSoftGemaltoOathDevice(SoftOathToken token,
SoftGemaltoOathSettings settings)
Creates a customized soft Gemalto OATH device.
|
SoftGemaltoOathSettings |
createSoftGemaltoOathSettings()
Creates a mutable Gemalto OATH settings.
|
OathDevice |
createSoftOathDevice(OathToken token)
Creates a Hardware or Software OATH device for the given OATH token.
|
OathDevice |
createSoftOathDevice(SoftOathToken token,
SoftOathSettings settings)
Creates a customized soft OATH device using the specified settings.
|
SoftOathSettings |
createSoftOathSettings()
Creates a OATH settings.
|
public final GemaltoOathDevice createGemaltoOathDevice(OathToken token) throws IdpException
If the token is soft, i.e
Token.isSoft()
is true
,
the default Gemalto OATH settings are used, otherwise the device settings
are used.
token
- the tokenIllegalArgumentException
- when the token type is unknown.IllegalStateException
- when the token's key is not a 20 byte key.IllegalStateException
- when the token supports more than one key (
OathToken.TokenCapability
) and its key has not been selected. Applies to tokens that
implement
SelectableKey.selectKey(int)
, e.g.
DualSeedSoftOathToken
.IdpException
- 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).public final GemaltoOathDevice createSoftGemaltoOathDevice(SoftOathToken token, SoftGemaltoOathSettings settings) throws IdpException
token
- the tokensettings
- the Gemalto OATH settingsIllegalStateException
- when the OATH key is not 20 bytesIllegalStateException
- when the token supports more than one key (
OathToken.TokenCapability
) and its key has not been selected. Applies to tokens that
implement
SelectableKey.selectKey(int)
, e.g. DualSeedOathToken
.IdpException
- 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).public final SoftGemaltoOathSettings createSoftGemaltoOathSettings()
public final OathDevice createSoftOathDevice(OathToken token) throws IdpException
If the token is soft, i.e
Token.isSoft()
is true
,
the default Gemalto OATH settings are used, otherwise the device settings
are used.
token
- the tokenIllegalArgumentException
- when the token is not a soft token.IllegalStateException
- when the OATH key is not 20, 32 or 64 bytesIllegalStateException
- when the token supports more than one key (
OathToken.TokenCapability
) and its key has not been selected. Applies to tokens that
implement
SelectableKey.selectKey(int)
, e.g.
DualSeedSoftOathToken
.IdpException
- 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).public final OathDevice createSoftOathDevice(SoftOathToken token, SoftOathSettings settings) throws IdpException
token
- the tokensettings
- the OATH settingsIllegalStateException
- when the OATH key is not 20, 32 or 64 bytesIllegalStateException
- when the token supports more than one key (
OathToken.TokenCapability
) and its key has not been selected. Applies to tokens that
implement
SelectableKey.selectKey(int)
, e.g.
DualSeedSoftOathToken
.IdpException
- 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).public final SoftOathSettings createSoftOathSettings()
public final DcvOathDevice createSoftDcvOathDevice(OathToken token) throws IdpException
If the token is soft, i.e
Token.isSoft()
is true
,
the default Gemalto OATH settings are used, otherwise the device settings
are used.
token
- the tokenIllegalArgumentException
- when the token is not a soft token.IllegalStateException
- when the OATH key is not 20, 32 or 64 bytesIdpException
- 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).public final DcvOathDevice createSoftDcvOathDevice(OathToken token, SoftDcvOathSettings settings) throws IdpException
token
- the tokensettings
- the DCV OATH settingsIllegalStateException
- when the OATH key is not 20, 32 or 64 bytesIdpException
- 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).public final SoftDcvOathSettings createSoftDcvOathSettings()