public class NoSignatureCounter extends java.lang.Object implements SignatureCounter
0 and effectively does nothing.
This is the behaviour that should be employed by authenticators that don't support signature counting.| Constructor and Description |
|---|
NoSignatureCounter() |
| 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.
|
public int increment(com.yubico.webauthn.data.ByteArray credentialId)
SignatureCounterNote: This does not imply that there must be a one-to-one mapping between credential IDs and signature counts.
SignatureCounter.initialize(ByteArray) must have been called for the given credential ID
before invoking this method for the first time.
increment in interface SignatureCountercredentialId - The credential ID that was just used to sign something.public int initialize(com.yubico.webauthn.data.ByteArray credentialId)
SignatureCounterWhat Initialization entails exactly is implementation-defined.
initialize in interface SignatureCountercredentialId - The credential ID.