Class JpaWebAuthnCredentialRepository

  • All Implemented Interfaces:
    com.yubico.core.RegistrationStorage, com.yubico.webauthn.CredentialRepository, org.apereo.cas.webauthn.storage.WebAuthnCredentialRepository, org.apereo.cas.webauthn.storage.WebAuthnRegistrationStorageCleaner

    @EnableTransactionManagement(proxyTargetClass=true)
    @Transactional(transactionManager="transactionManagerWebAuthn",
                   propagation=REQUIRED)
    public class JpaWebAuthnCredentialRepository
    extends org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
    Since:
    6.3.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apereo.cas.webauthn.storage.WebAuthnCredentialRepository

        org.apereo.cas.webauthn.storage.WebAuthnCredentialRepository.InMemoryWebAuthn
    • Constructor Summary

      Constructors 
      Constructor Description
      JpaWebAuthnCredentialRepository​(org.apereo.cas.configuration.CasConfigurationProperties properties, org.apereo.cas.util.crypto.CipherExecutor<java.lang.String,​java.lang.String> cipherExecutor, org.springframework.transaction.PlatformTransactionManager transactionManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<com.yubico.data.CredentialRegistration> getRegistrationsByUsername​(java.lang.String username)  
      java.util.stream.Stream<com.yubico.data.CredentialRegistration> load()  
      void update​(java.lang.String username, java.util.Collection<com.yubico.data.CredentialRegistration> records)  
      • Methods inherited from class org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository

        addRegistrationByUsername, clean, getCipherExecutor, getCredentialIdsForUsername, getProperties, getRegistrationByUsernameAndCredentialId, getRegistrationsByUserHandle, getUserHandleForUsername, getUsernameForUserHandle, lookup, lookupAll, removeAllRegistrations, removeRegistrationByUsername, updateSignatureCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.yubico.core.RegistrationStorage

        userExists
    • Constructor Detail

      • JpaWebAuthnCredentialRepository

        public JpaWebAuthnCredentialRepository​(org.apereo.cas.configuration.CasConfigurationProperties properties,
                                               org.apereo.cas.util.crypto.CipherExecutor<java.lang.String,​java.lang.String> cipherExecutor,
                                               org.springframework.transaction.PlatformTransactionManager transactionManager)
    • Method Detail

      • getRegistrationsByUsername

        public java.util.Collection<com.yubico.data.CredentialRegistration> getRegistrationsByUsername​(java.lang.String username)
      • load

        public java.util.stream.Stream<com.yubico.data.CredentialRegistration> load()
        Specified by:
        load in class org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
      • update

        public void update​(java.lang.String username,
                           java.util.Collection<com.yubico.data.CredentialRegistration> records)
        Specified by:
        update in class org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository