Search in sources :

Example 1 with PassphraseCredentialsProvider

use of org.springframework.cloud.config.server.support.PassphraseCredentialsProvider in project spring-cloud-config by spring-cloud.

the class GitCredentialsProviderFactoryTests method testCreatePassphraseCredentialProvider.

@Test
public void testCreatePassphraseCredentialProvider() {
    CredentialsProvider provider = factory.createFor(GIT_REPO, null, null, PASSWORD);
    assertNotNull(provider);
    assertTrue(provider instanceof PassphraseCredentialsProvider);
}
Also used : PassphraseCredentialsProvider(org.springframework.cloud.config.server.support.PassphraseCredentialsProvider) PassphraseCredentialsProvider(org.springframework.cloud.config.server.support.PassphraseCredentialsProvider) UsernamePasswordCredentialsProvider(org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider) CredentialsProvider(org.eclipse.jgit.transport.CredentialsProvider) Test(org.junit.Test)

Aggregations

CredentialsProvider (org.eclipse.jgit.transport.CredentialsProvider)1 UsernamePasswordCredentialsProvider (org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider)1 Test (org.junit.Test)1 PassphraseCredentialsProvider (org.springframework.cloud.config.server.support.PassphraseCredentialsProvider)1