@Override
        public OneTimeTokenCredentialRepository getRegistry() {
            val crypto = new EncryptionJwtSigningJwtCryptographyProperties();
            crypto.getEncryption().setKeySize(256);
            crypto.setAlg(ContentEncryptionAlgorithmIdentifiers.AES_128_CBC_HMAC_SHA_256);
            val tokenCredentialCipher = (CipherExecutor) CipherExecutorUtils.newStringCipherExecutor(crypto, OneTimeTokenAccountCipherExecutor.class);
            val password = new Base64RandomStringGenerator(16).getNewString();
            val scratchCodesCipher = new JasyptNumberCipherExecutor(password, "scratchCodesCipher");
            return new InMemoryGoogleAuthenticatorTokenCredentialRepository(tokenCredentialCipher, scratchCodesCipher,
                new DefaultCasGoogleAuthenticator(casProperties, tenantExtractor));
        }
This is {@link InMemoryGoogleAuthenticatorTokenCredentialRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-gauth/src/test/java/org/apereo/cas/gauth/credential/InMemoryGoogleAuthenticatorTokenCredentialRepositoryTests.java