Class QueryByCredentialIdStrategy
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.storage.impl.QueryByCredentialIdStrategy
- All Implemented Interfaces:
BiFunction<String,com.yubico.webauthn.data.ByteArray, List<StorageRecord<Set<CredentialRecord>>>>
public class QueryByCredentialIdStrategy
extends Object
implements BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>
A query strategy that uses the specialised query functionality of the
WebAuthnJDBCQueryAccelerator to
load credentials from the datasource with the given credentialId.- Since:
- 1.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WebAuthnJDBCQueryAcceleratorThe query accelerator used to lookup credentials. -
Constructor Summary
ConstructorsConstructorDescriptionQueryByCredentialIdStrategy(WebAuthnJDBCQueryAccelerator accelerator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
queryAccelerator
The query accelerator used to lookup credentials.
-
-
Constructor Details
-
QueryByCredentialIdStrategy
Constructor.- Parameters:
accelerator- the query accelerator used to lookup credentials.
-
-
Method Details
-
apply
public List<StorageRecord<Set<CredentialRecord>>> apply(String storageContext, com.yubico.webauthn.data.ByteArray credentialId) - Specified by:
applyin interfaceBiFunction<String,com.yubico.webauthn.data.ByteArray, List<StorageRecord<Set<CredentialRecord>>>>
-