public interface SignatureCounter
authenticators to keep track of the number
of signatures they have performed.
This is done via a decoupled interface to enable authenticator implementations to support multiple styles of signature counting without implementing the logic for all of them at the same time.
| Modifier and Type | Method and Description |
|---|---|
int |
increment(com.yubico.webauthn.data.ByteArray credentialId)
Increment the signature count associated with the given credential ID.
|
int |
initialize(com.yubico.webauthn.data.ByteArray credentialId)
Initialize the signature count for a given credential ID.
|
int increment(com.yubico.webauthn.data.ByteArray credentialId)
Note: This does not imply that there must be a one-to-one mapping between credential IDs and signature counts.
initialize(ByteArray) must have been called for the given credential ID
before invoking this method for the first time.
credentialId - The credential ID that was just used to sign something.int initialize(com.yubico.webauthn.data.ByteArray credentialId)
What Initialization entails exactly is implementation-defined.
credentialId - The credential ID.