Standard authentication OATH.
See the HSM technical documentation.
Functions | |
byte[] | generateOATHHotpBlob (String masterKey) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password). | |
byte[] | generateOATHHotpBlob (String masterKey, byte seedLen) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password). | |
byte[] | generateOATHHotpBlob (String masterKey, byte seedLen, byte truncationOffset) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password). | |
byte[] | importOATHHotpBlob (String masterKey, byte[] seed) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password). | |
byte[] | generateOATHTotpBlob (String masterKey) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password). | |
byte[] | generateOATHTotpBlob (String masterKey, byte seedLen, byte truncationOffset, int timeStep, long t0) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password). | |
byte[] | importOATHTotpBlob (String masterKey, byte[] seed, byte truncationOffset, int timeStep, long t0, boolean useDefaultMovingFactor, long movingFactor) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password). | |
byte[] | importOATHTotpBlob (String masterKey, byte[] seed) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password). | |
byte[] | getOATHSeed (String masterKey, byte[] blob) throws TacException |
Retrieves the seed from the blob OATH. | |
String | getNextOATHOTP (String masterKey, int otpLen, byte[] oathBlob) throws TacException |
Generates the next OTP from the OATH informed blob. | |
byte[] | checkOATHBlobOTP (String masterKey, String otp, byte[] oathBlob) throws TacException |
Checks an OTP value for a given blob OATH. | |
byte[] | resyncOATHBlobOTP (String masterKey, String otp1, String otp2, byte[] oathBlob) throws TacException |
Re-synchronizes a blob OATH by displaying two continuous OTP values. | |
byte[] generateOATHHotpBlob | ( | String | masterKey | ) | throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password).
Also known as OTP per event. The seed is generated inside the HSM. Seed size TacNDJavaLib.ISSUE_OATH_SHA1_LEN.
masterKey | Name of the master key used to protect the blobs. |
TacException |
byte[] generateOATHHotpBlob | ( | String | masterKey, |
byte | seedLen ) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password).
Also known as OTP per event. The seed is generated within the HSM.
masterKey | Name of the master key used to protect the blobs. | ||||||||
seedLen | Sets the seed size OATH. The following values are accepted.
|
TacException |
byte[] generateOATHHotpBlob | ( | String | masterKey, |
byte | seedLen, | ||
byte | truncationOffset ) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password).
Also known as OTP per event. The seed is generated within the HSM.
masterKey | Name of the master key used to protect the blobs. | ||||||||
seedLen | Sets the seed size OATH. The following values are accepted.
| ||||||||
truncationOffset | The following amount is supported:
|
TacException |
byte[] importOATHHotpBlob | ( | String | masterKey, |
byte[] | seed ) throws TacException |
Generates a blob OATH HOTP(HMAC-based One-Time Password).
Also known as event-based OTP. The seed is imported by the caller.
masterKey | Name of the master key used to protect the blobs. | ||||||||
seed | Define a seed OATH. The following sizes are accepted.
|
TacException |
byte[] generateOATHTotpBlob | ( | String | masterKey | ) | throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password).
Also known as OTP by time. The seed is generated inside the HSM. Seed of size TacNDJavaLib.ISSUE_OATH_SHA1_LEN.
masterKey | Name of the master key used to protect the blobs. |
TacException |
byte[] generateOATHTotpBlob | ( | String | masterKey, |
byte | seedLen, | ||
byte | truncationOffset, | ||
int | timeStep, | ||
long | t0 ) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password).
Also known as OTP by time. The seed is generated inside the HSM.
masterKey | Name of the master key used to protect the blobs. | ||||||||
seedLen | Sets the seed size OATH. The following values are accepted.
| ||||||||
truncationOffset | The following amount is supported:
| ||||||||
timeStep | Time step value in seconds. In addition to setting the time step in seconds for TOTP blobs, the following values are also supported.
| ||||||||
t0 | Initial time value.
|
TacException |
byte[] importOATHTotpBlob | ( | String | masterKey, |
byte[] | seed, | ||
byte | truncationOffset, | ||
int | timeStep, | ||
long | t0, | ||
boolean | useDefaultMovingFactor, | ||
long | movingFactor ) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password).
Also known as OTP by time. The seed is imported by the caller.
masterKey | Name of the master key used to protect the blobs. | ||||||||
seed | Define a seed OATH. The following sizes are accepted.
| ||||||||
truncationOffset | The following amount is supported:
| ||||||||
timeStep | Time step value in seconds. In addition to setting the time step in seconds for TOTP blobs, the following values are also supported.
| ||||||||
t0 | Initial time value.
| ||||||||
useDefaultMovingFactor | Set to true to use the default moving factor or to false to specify a moving factor in movingFactor. | ||||||||
movingFactor | Sets the customer's initial increment before use. In addition to setting the increment manually, you can use the values in the following table.
|
TacException |
byte[] importOATHTotpBlob | ( | String | masterKey, |
byte[] | seed ) throws TacException |
Generates a blob OATH TOTP(Time-based One-Time Password).
Also known as OTP by time. The seed is imported by the caller.
masterKey | Name of the master key used to protect the blobs. | ||||||||
seed | Define a seed OATH. The following sizes are accepted.
|
TacException |
byte[] getOATHSeed | ( | String | masterKey, |
byte[] | blob ) throws TacException |
Retrieves the seed from the blob OATH.
masterKey | Name of the master key used to protect the blobs. |
blob | blob OATH. |
TacException |
String getNextOATHOTP | ( | String | masterKey, |
int | otpLen, | ||
byte[] | oathBlob ) throws TacException |
Generates the next OTP from the OATH informed blob.
masterKey | name of the master key used to protect the blobs. |
otpLen | size of the OTP to be generated. Minimum size TacNDJavaLib.ISSUE_OATH_MIN_OTP_LEN and maximum TacNDJavaLib.ISSUE_OATH_MAX_OTP_LEN. |
oathBlob | blob that will be used to generate the OTP. This buffer will not be altered. |
TacException |
byte[] checkOATHBlobOTP | ( | String | masterKey, |
String | otp, | ||
byte[] | oathBlob ) throws TacException |
Checks an OTP value for a given blob OATH.
masterKey | Name of the master key used to protect the blobs. |
otp | OTP to be checked. Minimum size TacNDJavaLib.ISSUE_OATH_MIN_OTP_LEN and maximum TacNDJavaLib.ISSUE_OATH_MAX_OTP_LEN. |
oathBlob | blob that will have the OTP checked. This buffer will be rewritten with the updated buffer. |
TacException |
byte[] resyncOATHBlobOTP | ( | String | masterKey, |
String | otp1, | ||
String | otp2, | ||
byte[] | oathBlob ) throws TacException |
Re-synchronizes a blob OATH by displaying two continuous OTP values.
Only for HOTP (OTP per event).
masterKey | Name of the master key used to protect the blobs. |
otp1 | First OTP. Minimum size TacNDJavaLib.ISSUE_OATH_MIN_OTP_LEN and maximum TacNDJavaLib.ISSUE_OATH_MAX_OTP_LEN. |
otp2 | Second OTP. Minimum size TacNDJavaLib.ISSUE_OATH_MIN_OTP_LEN and maximum TacNDJavaLib.ISSUE_OATH_MAX_OTP_LEN. |
oathBlob | blob that will have the OTP checked. This buffer will be rewritten with the updated buffer. |
TacException |