Uses of Class
land.oras.auth.Scopes
Packages that use Scopes
-
Uses of Scopes in land.oras.auth
Methods in land.oras.auth that return ScopesModifier and TypeMethodDescriptionstatic ScopesScopes.empty(ContainerRef containerRef, String service) Create a new Scopes object with no scopesstatic ScopesScopes.of(String service, ContainerRef containerRef, Scope... scopes) Create a new Scopes objectstatic ScopesScopes.of(ContainerRef containerRef, Scope... scopes) Create a new Scopes objectScopes.withAddedGlobalScopes(String... globalScopes) Return a new copy of the Scopes object with the given scopesScopes.withAddedRegistryScopes(Scope... newScopes) Return a new copy of the Scopes object with the added scopesScopes.withNewScope(String scope) Return a new copy of the Scopes object with the given scopeScopes.withOnlyGlobalScopes()Return scopes that only contains global scopes (i.e. no repository or registry scopes)Scopes.withoutGlobalScopes()Return scopes that only contains non-global scopes (i.e. only repository or registry scopes)Scopes.withRegistryScopes(Scope... scopes) Return a new copy of the Scopes object with the given scopesScopes.withService(@Nullable String service) Return a new copy of the Scopes object with the given serviceMethods in land.oras.auth with parameters of type ScopesModifier and TypeMethodDescriptionPerform a DELETE requestHttpClient.download(URI uri, Map<String, String> headers, Path file, Scopes scopes, AuthProvider authProvider) Download to a fileDownload to to input streamPerform a GET requeststatic @Nullable HttpClient.TokenResponseGet a token response from the cache based on the provided scopes.Perform a HEAD requestHttpClient.patch(URI uri, byte[] body, Map<String, String> headers, Scopes scopes, AuthProvider authProvider) Perform a Patch requestHttpClient.post(URI uri, byte[] body, Map<String, String> headers, Scopes scopes, AuthProvider authProvider) Perform a POST request.HttpClient.put(URI uri, byte[] body, Map<String, String> headers, Scopes scopes, AuthProvider authProvider) Perform a PUT requeststatic voidTokenCache.put(Scopes scopes, HttpClient.TokenResponse token) Put a token response in the cache with the associated scopes.HttpClient.refreshToken(HttpClient.ResponseWrapper<T> response, Scopes scopes, AuthProvider authProvider) Retrieve a token from the registryHttpClient.upload(String method, URI uri, Map<String, String> headers, Path file, Scopes scopes, AuthProvider authProvider) Upload a fileHttpClient.upload(URI uri, long size, Map<String, String> headers, Supplier<InputStream> stream, Scopes scopes, AuthProvider authProvider) Upload from an input stream.