EMCapTools Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | EMCapTools.h |
+ prefixSequenceNumberToOtp:token:tokenVersionLength:
Prefixes an OTP value with a token sequence number, zero padded to the left.
+ (id<EMSecureString>)prefixSequenceNumberToOtp:(id<EMSecureString>)otp token:(id<EMToken>)token tokenVersionLength:(int)tokenVersionLengthParameters
otp |
OTP to prefix. |
||||||||
|---|---|---|---|---|---|---|---|---|---|
token |
The token which generated the OTP. Only significant digits will be used. |
||||||||
tokenVersionLength |
Number of digits to prefix, if needed the
|
Return Value
The OTP value prefixed.
Discussion
Warning: This method should be used when token has been provisioned with provisioning protocol v1.
Warning: The token sequence number is not defined for OATH tokens. All OATH tokens will be assigned to the default value as 0xFF.
Exceptions
NSInvalidArgumentException |
|
|---|
Declared In
EMCapTools.h
+ prefixSequenceNumberToOtp:token:
Prefixes an OTP value with a token sequence number, zero padded to the left.
+ (id<EMSecureString>)prefixSequenceNumberToOtp:(id<EMSecureString>)otp token:(id<EMToken>)tokenParameters
otp |
OTP to prefix. |
|---|---|
token |
The token which generated the OTP. Only significant digits will be used. |
Return Value
The OTP value prefixed.
Discussion
Warning: This method should be used when token has been provisioned with provisioning protocol v1.
Exceptions
NSInvalidArgumentException |
|
|---|
Declared In
EMCapTools.h
+ prefixSequenceNumberAsHexToOtp:token:
Prefixes an OTP value with a token sequence number as hexadecimal digits.
+ (id<EMSecureString>)prefixSequenceNumberAsHexToOtp:(id<EMSecureString>)otp token:(id<EMToken>)tokenParameters
otp |
OTP to prefix. |
|---|---|
token |
The token which generated the OTP. Only significant digits will be used. |
Return Value
The OTP value prefixed.
Discussion
Warning: This method should be used when token has been provisioned with provisioning protocol v2.
Warning: The token sequence number is not defined for OATH tokens. All OATH tokens will be assigned to the default value as 0xFF.
Exceptions
NSInvalidArgumentException |
|
|---|
Declared In
EMCapTools.h