Package land.oras.auth
Class Scopes
java.lang.Object
land.oras.auth.Scopes
Store scopes
-
Method Summary
Modifier and TypeMethodDescriptionstatic Scopes
empty
(Registry registry, ContainerRef containerRef) Create a new Scopes object with no scopesGet the container referenceGet the registryGet the scopesstatic Scopes
of
(Registry registry, ContainerRef containerRef, Scope... scopes) Create a new Scopes objectwithNewRegistryScopes
(Scope... newScopes) Return a new copy of the Scopes object with the given scopeswithNewScope
(String scope) Return a new copy of the Scopes object with the given scopewithRegistryScopes
(Scope... scopes) Return a new copy of the Scopes object with the given scopes
-
Method Details
-
of
Create a new Scopes object- Parameters:
registry
- The registrycontainerRef
- The container referencescopes
- The scopes- Returns:
- A new Scopes object
-
empty
Create a new Scopes object with no scopes- Parameters:
registry
- The registrycontainerRef
- The container reference- Returns:
- A new Scopes object with no scopes
-
withRegistryScopes
Return a new copy of the Scopes object with the given scopes- Parameters:
scopes
- The scopes to set- Returns:
- A new Scopes object with the given scopes
-
withNewRegistryScopes
Return a new copy of the Scopes object with the given scopes- Parameters:
newScopes
- The scopes to add- Returns:
- A new Scopes object with the given scopes
-
withNewScope
Return a new copy of the Scopes object with the given scope- Parameters:
scope
- The scope to add- Returns:
- A new Scopes object with the given scope
-
getScopes
Get the scopes- Returns:
- The scopes
-
getRegistry
Get the registry- Returns:
- The registry
-
getContainerRef
Get the container reference- Returns:
- The container reference
-