UserGoogleMfaCredentialsProvisioning implements ICredentialRepository { @Override public String getSecretKey(String userId) { throw new UnsupportedOperationException(); }  void setAuthenticator(GoogleAuthenticator authenticator); UserGoogleMfaCredentials getUserGoogleMfaCredentials(String userId); UserGoogleMfaCredentials getUserGoogleMfaCredentials(String userId, String providerId); @Override String getSecretKey(String userId); String getOtpAuthURL(String qrIssuer, UserGoogleMfaCredentials credentials, String userName); UserGoogleMfaCredentials createUserCredentials(String userId); boolean isValidCode(UserGoogleMfaCredentials credentials, Integer code); @Override void saveUserCredentials(String userId, String secretKey, int validationCode, List<Integer> scratchCodes); void saveUserCredentials(UserGoogleMfaCredentials credentials); boolean activeUserCredentialExists(String userId, String providerId); boolean isFirstTimeMFAUser(UaaPrincipal uaaPrincipal); void setJdbcProvisioner(UserMfaCredentialsProvisioning<UserGoogleMfaCredentials> jdbcProvisioner); void setMfaProviderProvisioning(MfaProviderProvisioning mfaProviderProvisioning);  }
@Test void testGetSecretKey() { assertThrows(UnsupportedOperationException.class, () -> provisioner.getSecretKey("jabbahut")); }