public static class RegistryAuthenticator.Initializer extends Object
RegistryAuthenticator.| Modifier and Type | Method and Description |
|---|---|
RegistryAuthenticator |
initialize()
Gets a
RegistryAuthenticator for a custom registry server and repository. |
RegistryAuthenticator.Initializer |
setAllowInsecureRegistries(boolean allowInsecureRegistries) |
RegistryAuthenticator.Initializer |
setUserAgentSuffix(String userAgentSuffix) |
public RegistryAuthenticator.Initializer setAllowInsecureRegistries(boolean allowInsecureRegistries)
public RegistryAuthenticator.Initializer setUserAgentSuffix(@Nullable String userAgentSuffix)
@Nullable public RegistryAuthenticator initialize() throws RegistryAuthenticationFailedException, IOException, RegistryException
RegistryAuthenticator for a custom registry server and repository.RegistryAuthenticator to authenticate pulls/pushes with the registry, or
null if no token authentication is necessaryRegistryAuthenticationFailedException - if failed to create the registry authenticatorIOException - if communicating with the endpoint failsRegistryException - if communicating with the endpoint failsCopyright © 2019. All rights reserved.