Package land.oras
Class Registry.Builder
java.lang.Object
land.oras.Registry.Builder
- Enclosing class:
- Registry
Builder for the registry
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the registrystatic Registry.Builder
builder()
Return a new builderdefaults()
Return a new builder with default authentication using existing host authReturn a new builder with username and password authenticationinsecure()
Return a new builder with insecure communication and not authentificationwithAuthProvider
(AuthProvider authProvider) Set the auth providerwithInsecure
(boolean insecure) Set the insecure flagwithSkipTlsVerify
(boolean skipTlsVerify) Set the skip TLS verify flag
-
Method Details
-
defaults
Return a new builder with default authentication using existing host auth- Returns:
- The builder
-
defaults
Return a new builder with username and password authentication- Parameters:
username
- The usernamepassword
- The password- Returns:
- The builder
-
insecure
Return a new builder with insecure communication and not authentification- Returns:
- The builder
-
withAuthProvider
Set the auth provider- Parameters:
authProvider
- The auth provider- Returns:
- The builder
-
withInsecure
Set the insecure flag- Parameters:
insecure
- Insecure- Returns:
- The builder
-
withSkipTlsVerify
Set the skip TLS verify flag- Parameters:
skipTlsVerify
- Skip TLS verify- Returns:
- The builder
-
builder
Return a new builder- Returns:
- The builder
-
build
Build the registry- Returns:
- The registry
-