# Uses of Class
net.shibboleth.idp.plugin.authn.webauthn.storage.CredentialRecord

Packages that use CredentialRecord
Package
Description
net.shibboleth.idp.plugin.authn.webauthn.impl
This package has an authentication implementation for WebAuthn.
net.shibboleth.idp.plugin.authn.webauthn.storage
Storage APIs for WebAuthn.
net.shibboleth.idp.plugin.authn.webauthn.storage.impl
This package has storage implementations for WebAuthn.

## Uses of CredentialRecord in net.shibboleth.idp.plugin.authn.webauthn.impl

Method parameters in net.shibboleth.idp.plugin.authn.webauthn.impl with type arguments of type CredentialRecord
Modifier and Type
Method
Description
`protected Collection<EnhancedCredentialRecord>`
AbstractWebAuthnAction.`enhancedCredentialRecord(Collection<CredentialRecord> credentials)`
Create `EnhancedCredentialRecords` from the given `CredentialRecords` and add any appropriate metadata to each record.

## Uses of CredentialRecord in net.shibboleth.idp.plugin.authn.webauthn.storage

Fields in net.shibboleth.idp.plugin.authn.webauthn.storage declared as CredentialRecord
Modifier and Type
Field
Description
`private final CredentialRecord`
EnhancedCredentialRecord.`credentialRecord`
The wrapped credential record.
Methods in net.shibboleth.idp.plugin.authn.webauthn.storage that return CredentialRecord
Modifier and Type
Method
Description
`CredentialRecord`
CredentialRecord.Builder.`build()`
`CredentialRecord`
CredentialRecord.IBuildStage.`build()`
Build this credential registration.
`CredentialRecord`
EnhancedCredentialRecord.`getCredentialRecord()`
Get the wrapped credential record.
`CredentialRecord`
CredentialRecord.`withCredential(com.yubico.webauthn.RegisteredCredential newRegisteredCred)`
Deprecated, for removal: This API element is subject to removal in a future version.
use `toBuilder()`
Methods in net.shibboleth.idp.plugin.authn.webauthn.storage that return types with arguments of type CredentialRecord
Modifier and Type
Method
Description
`Set<CredentialRecord>`
WebAuthnCredentialRepository.`getAllRegistrations()`
Get all credential registrations known to the repository.
`Optional<CredentialRecord>`
WebAuthnCredentialRepository.`getRegistrationByUserHandleAndCredentialId(com.yubico.webauthn.data.ByteArray credentialId, com.yubico.webauthn.data.ByteArray userHandle)`
Get the credential belonging to the user by userHandle and credentialID.
`Optional<CredentialRecord>`
WebAuthnCredentialRepository.`getRegistrationByUsernameAndCredentialId(String username, com.yubico.webauthn.data.ByteArray credentialId)`
Get the credential belonging to the user by its credential identifier.
`Set<CredentialRecord>`
WebAuthnCredentialRepository.`getRegistrationsByUsername(String username)`
Get credential registrations by username.
Methods in net.shibboleth.idp.plugin.authn.webauthn.storage with parameters of type CredentialRecord
Modifier and Type
Method
Description
`boolean`
WebAuthnCredentialRepository.`addRegistrationByUsername(String username, CredentialRecord credential)`
Add a new credential registration for a given user, by their username.
`boolean`
WebAuthnCredentialRepository.`removeRegistrationByUsername(String username, CredentialRecord credentialRegistration)`
Remove the registration for the given user.
Constructors in net.shibboleth.idp.plugin.authn.webauthn.storage with parameters of type CredentialRecord
Modifier
Constructor
Description
``
`Builder(CredentialRecord existingRecord)`
Constructor to build a new `CredentialRecord` from the given one.
``
`EnhancedCredentialRecord(CredentialRecord credential)`
Constructor.

## Uses of CredentialRecord in net.shibboleth.idp.plugin.authn.webauthn.storage.impl

Fields in net.shibboleth.idp.plugin.authn.webauthn.storage.impl with type parameters of type CredentialRecord
Modifier and Type
Field
Description
`private BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>`
StorageServiceCredentialRepositoryFactory.`credentialByCredentialIdLookupStrategy`
A strategy used to lookup credentials by credentialId.
`private BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>`
StrategyBasedIdPStorageServiceCredentialRepository.`credentialByCredentialIdLookupStrategy`
The strategy used to lookup credentials by credentialId.
`private BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>`
StorageServiceCredentialRepositoryFactory.`credentialByUserHandleLookupStrategy`
A strategy used to lookup credentials by userHandle.
`private BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>`
StrategyBasedIdPStorageServiceCredentialRepository.`credentialByUserHandleLookupStrategy`
The strategy used to lookup credentials by userHandle.
`private final Set<CredentialRecord>`
IdPStorageServiceCredentialRepository.VersionedCredentialSet.`credentials`
The wrapped set of credentials.
`private final Function<CredentialRecord,String>`
CacheServiceImpl.`keyExtractionStrategy`
The strategy to use to convert a `CredentialRecord` into a key suitable for the cache.
`private Function<CredentialRecord,String>`
CacheServiceImpl.Builder.`keyExtractionStrategyBuild`
The key extraction strategy.
`private StorageSerializer<Set<CredentialRecord>>`
IdPStorageServiceCredentialRepository.`serializer`
Storage record serializer.
`private StorageSerializer<Set<CredentialRecord>>`
StorageServiceCredentialRepositoryFactory.`serializer`
Storage record serializer.
`private Function<String,List<StorageRecord<Set<CredentialRecord>>>>`
IdPStorageServiceCredentialRepository.`storageRecordCacheLoader`
A cache loader to be used when this repository is initialised to load mappings into the cache.
`private Function<String,List<StorageRecord<Set<CredentialRecord>>>>`
StorageServiceCredentialRepositoryFactory.`storageRecordCacheLoader`
A cache loader to be used when the credential repository is initialized.
`private final Function<CredentialRecord,String>`
CacheServiceImpl.`valueExtractionStrategy`
The strategy to use to convert a `CredentialRecord` into a suitable value for the cache.
`private Function<CredentialRecord,String>`
CacheServiceImpl.Builder.`valueExtractionStrategyBuild`
The value extraction strategy.
Methods in net.shibboleth.idp.plugin.authn.webauthn.storage.impl that return types with arguments of type CredentialRecord
Modifier and Type
Method
Description
`List<StorageRecord<Set<CredentialRecord>>>`
QueryByAllStrategy.`apply(String storageContext, com.yubico.webauthn.data.ByteArray credentialId)`
`List<StorageRecord<Set<CredentialRecord>>>`
QueryByCredentialIdStrategy.`apply(String storageContext, com.yubico.webauthn.data.ByteArray credentialId)`
`List<StorageRecord<Set<CredentialRecord>>>`
QueryByUserHandleStrategy.`apply(String storageContext, com.yubico.webauthn.data.ByteArray userHandle)`
`List<StorageRecord<Set<CredentialRecord>>>`
ReadAllCacheLoadingStrategy.`apply(String storageContext)`
`Set<CredentialRecord>`
CredentialRegistrationSerializer.`deserialize(long version, String context, String key, String value, Long expiration)`
`Set<CredentialRecord>`
IdPStorageServiceCredentialRepository.`getAllRegistrations()`
Get all credential registrations known to the repository.
`private BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>`
StorageServiceCredentialRepositoryFactory.`getCredentialByCredentialIdLookupStrategy()`
Get the JDBC strategy used to lookup credential records based on the credentialId.
`private BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>>`
StorageServiceCredentialRepositoryFactory.`getCredentialByUserHandleLookupStrategy()`
Get the JDBC strategy used to lookup credential records based on the userHandle.
`Set<CredentialRecord>`
IdPStorageServiceCredentialRepository.VersionedCredentialSet.`getCredentials()`
Get the wrapped set of credentials.
`Optional<CredentialRecord>`
IdPStorageServiceCredentialRepository.`getRegistrationByUserHandleAndCredentialId(com.yubico.webauthn.data.ByteArray credentialId, com.yubico.webauthn.data.ByteArray userHandle)`
Get the credential belonging to the user by userHandle and credentialID.
`Optional<CredentialRecord>`
IdPStorageServiceCredentialRepository.`getRegistrationByUsernameAndCredentialId(String username, com.yubico.webauthn.data.ByteArray id)`
Get the credential belonging to the user by its credential identifier.
`protected Set<CredentialRecord>`
IdPStorageServiceCredentialRepository.`getRegistrationsByCredentialId(com.yubico.webauthn.data.ByteArray credentialId)`
Get registrations from any user by credentialId.
`protected Set<CredentialRecord>`
StrategyBasedIdPStorageServiceCredentialRepository.`getRegistrationsByCredentialId(com.yubico.webauthn.data.ByteArray credentialId)`
Get registrations from any user by credentialId.
`protected Collection<CredentialRecord>`
IdPStorageServiceCredentialRepository.`getRegistrationsByUserHandle(com.yubico.webauthn.data.ByteArray userHandle)`
Get registrations from any user by userHandle.
`protected Collection<CredentialRecord>`
StrategyBasedIdPStorageServiceCredentialRepository.`getRegistrationsByUserHandle(com.yubico.webauthn.data.ByteArray userHandle)`
Get registrations from any user by userHandle.
`Set<CredentialRecord>`
IdPStorageServiceCredentialRepository.`getRegistrationsByUsername(String username)`
Get credential registrations by username.
`protected StorageSerializer<Set<CredentialRecord>>`
IdPStorageServiceCredentialRepository.`getSerializer()`
Get the storage serializer to use.
`StorageSerializer<Set<CredentialRecord>>`
StorageServiceCredentialRepositoryFactory.`getSerializer()`
Get the storage service serializer to use.
`Function<String,List<StorageRecord<Set<CredentialRecord>>>>`
StorageServiceCredentialRepositoryFactory.`getStorageRecordCacheLoader()`
Get the loader that loads entries to be cached on initialisation of the credential repository.
Methods in net.shibboleth.idp.plugin.authn.webauthn.storage.impl with parameters of type CredentialRecord
Modifier and Type
Method
Description
`boolean`
IdPStorageServiceCredentialRepository.`addRegistrationByUsername(String username, CredentialRecord reg)`
Add a new credential registration for a given user, by their username.
`private boolean`
IdPStorageServiceCredentialRepository.`addRegistrationByUsernameImpl(String username, CredentialRecord registration)`
Add a new credential registration to the user.
`String`
StorageServiceCredentialRepositoryFactory.CredentialIdB64FromCredentialExtractionStrategy.`apply(CredentialRecord cred)`
`String`
StorageServiceCredentialRepositoryFactory.UserHandleB64FromCredentialExtractionStrategy.`apply(CredentialRecord cred)`
`String`
StorageServiceCredentialRepositoryFactory.UsernameFromCredentialExtractionStrategy.`apply(CredentialRecord cred)`
`void`
CacheService.`put(CredentialRecord registration)`
Associates the registration with the username in this cache.
`void`
CacheServiceImpl.`put(CredentialRecord registration)`
`void`
DisabledCacheServiceImpl.`put(CredentialRecord registration)`
`boolean`
IdPStorageServiceCredentialRepository.`removeRegistrationByUsername(String username, CredentialRecord credentialRegistration)`
`protected void`
IdPStorageServiceCredentialRepository.`updateCache(CredentialRecord update)`
Update the cache with the userHandle and username mappings found in the credential record.
Method parameters in net.shibboleth.idp.plugin.authn.webauthn.storage.impl with type arguments of type CredentialRecord
Modifier and Type
Method
Description
`protected void`
IdPStorageServiceCredentialRepository.`reloadCache(List<StorageRecord<Set<CredentialRecord>>> records)`
Reload the cache.
`String`
CredentialRegistrationSerializer.`serialize(Set<CredentialRecord> instance)`
`void`
StorageServiceCredentialRepositoryFactory.`setCredentialByCredentialIdLookupStrategy(BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>> strategy)`
Set the JDBC strategy used to lookup credential records based on the credentialId.
`void`
StrategyBasedIdPStorageServiceCredentialRepository.`setCredentialByCredentialIdLookupStrategy(BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>> strategy)`
Set the strategy used to lookup credential records based on the credentialId.
`void`
StorageServiceCredentialRepositoryFactory.`setCredentialByUserHandleLookupStrategy(BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>> strategy)`
Set the JDBC strategy used to lookup credential records based on the userHandle.
`void`
StrategyBasedIdPStorageServiceCredentialRepository.`setCredentialByUserHandleLookupStrategy(BiFunction<String,com.yubico.webauthn.data.ByteArray,List<StorageRecord<Set<CredentialRecord>>>> strategy)`
Set the strategy used to lookup credential records based on the userHandle.
`void`
IdPStorageServiceCredentialRepository.`setSerializer(StorageSerializer<Set<CredentialRecord>> storageSerializer)`
Set the storage service serializer to handle `CredentialRecord`s.
`void`
StorageServiceCredentialRepositoryFactory.`setSerializer(StorageSerializer<Set<CredentialRecord>> storageSerializer)`
Set the storage service serializer to handle `CredentialRecord`s.
`void`
IdPStorageServiceCredentialRepository.`setStorageRecordCacheLoader(Function<String,List<StorageRecord<Set<CredentialRecord>>>> loader)`
Set a loader that loads credential records to be cached on initialisation of this storage service.
`void`
StorageServiceCredentialRepositoryFactory.`setStorageRecordCacheLoader(Function<String,List<StorageRecord<Set<CredentialRecord>>>> loader)`
Set a loader that loads entries to be cached on initialisation of the credential repository.
`protected void`
IdPStorageServiceCredentialRepository.`updateCredentialIdCache(Collection<CredentialRecord> updates)`
Update the cache with the credentialId to username mappings found in the credential record set.
`protected void`
IdPStorageServiceCredentialRepository.`updateUserHandleCache(Collection<CredentialRecord> updates)`
Update the cache with the userHandle and username mappings found in the credential record set.
`CacheServiceImpl.IBuildStage`
CacheServiceImpl.Builder.`withKeyExtractionStrategy(Function<CredentialRecord,String> keyExtractionStrategy)`
`CacheServiceImpl.IBuildStage`
CacheServiceImpl.IBuildStage.`withKeyExtractionStrategy(Function<CredentialRecord,String> strategy)`
The strategy to use to convert a `CredentialRecord` into a key suitable for the cache.
`CacheServiceImpl.IBuildStage`
CacheServiceImpl.Builder.`withValueExtractionStrategy(Function<CredentialRecord,String> valueExtractionStrategy)`
`CacheServiceImpl.IBuildStage`
CacheServiceImpl.IBuildStage.`withValueExtractionStrategy(Function<CredentialRecord,String> strategy)`
The strategy to use to convert a `CredentialRecord` into a key suitable for the cache.
Constructor parameters in net.shibboleth.idp.plugin.authn.webauthn.storage.impl with type arguments of type CredentialRecord
Modifier
Constructor
Description
``
`VersionedCredentialSet(long ver, Set<CredentialRecord> creds)`
Constructor.