getAuthentication() — spring-boot Function Reference
Architecture documentation for the getAuthentication() function in DockerRegistryConfigAuthentication.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 7f4bae60_5717_82eb_ecf7_3636be3e6b9e["getAuthentication()"] a332b0b6_1f84_5f90_c5e0_0ffa96c1ae66["getAuthHeader()"] a332b0b6_1f84_5f90_c5e0_0ffa96c1ae66 -->|calls| 7f4bae60_5717_82eb_ecf7_3636be3e6b9e 801a545b_ca92_5f99_0408_e94da9d802de["getCredentialsFromHelper()"] 7f4bae60_5717_82eb_ecf7_3636be3e6b9e -->|calls| 801a545b_ca92_5f99_0408_e94da9d802de 7dcc8f85_39eb_99dc_9385_7e5a64ca01ea["getAuthConfigEntry()"] 7f4bae60_5717_82eb_ecf7_3636be3e6b9e -->|calls| 7dcc8f85_39eb_99dc_9385_7e5a64ca01ea c3a9a7c5_d64d_f7b5_8e54_2fd855b9e6c9["getServerUrl()"] 7f4bae60_5717_82eb_ecf7_3636be3e6b9e -->|calls| c3a9a7c5_d64d_f7b5_8e54_2fd855b9e6c9 style 7f4bae60_5717_82eb_ecf7_3636be3e6b9e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerRegistryConfigAuthentication.java lines 88–105
private @Nullable DockerRegistryAuthentication getAuthentication(@Nullable String serverUrl) {
Credential credentialsFromHelper = getCredentialsFromHelper(serverUrl);
Map.Entry<String, Auth> authConfigEntry = getAuthConfigEntry(serverUrl);
Auth authConfig = (authConfigEntry != null) ? authConfigEntry.getValue() : null;
if (credentialsFromHelper != null) {
return getAuthentication(credentialsFromHelper, authConfig, serverUrl);
}
if (authConfig != null) {
Assert.state(authConfigEntry != null, "'authConfigEntry' must not be null");
String username = authConfig.getUsername();
String password = authConfig.getPassword();
Assert.state(username != null, "'username' must not be null");
Assert.state(password != null, "'password' must not be null");
return DockerRegistryAuthentication.user(username, password, authConfigEntry.getKey(),
authConfig.getEmail());
}
return this.fallback;
}
Domain
Subdomains
Calls
- getAuthConfigEntry()
- getCredentialsFromHelper()
- getServerUrl()
Called By
Source
Frequently Asked Questions
What does getAuthentication() do?
getAuthentication() is a function in the spring-boot codebase.
What does getAuthentication() call?
getAuthentication() calls 3 function(s): getAuthConfigEntry, getCredentialsFromHelper, getServerUrl.
What calls getAuthentication()?
getAuthentication() is called by 1 function(s): getAuthHeader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free