Package io.pravega.shared.security.auth
Class AuthorizationResourceImpl
- java.lang.Object
-
- io.pravega.shared.security.auth.AuthorizationResourceImpl
-
- All Implemented Interfaces:
AuthorizationResource
public class AuthorizationResourceImpl extends java.lang.Object implements AuthorizationResource
The main implementation of theAuthorizationResourceclass.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOMAIN_PART_SUFFIX
-
Constructor Summary
Constructors Constructor Description AuthorizationResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringofInternalStream(java.lang.String scopeName, @NonNull java.lang.String streamName)Creates a resource representation for use in authorization of actions related to the specified internal stream.java.lang.StringofKeyValueTableInScope(java.lang.String scopeName, java.lang.String keyValueTableName)Creates a resource representation for use in authorization of actions pertaining to the specified KeyValueTable within the specified scope.java.lang.StringofKeyValueTablesInScope(java.lang.String scopeName)Creates a resource representation for use in authorization of actions pertaining to the collection of Key-Value tables within the specified scope.java.lang.StringofReaderGroupInScope(java.lang.String scopeName, java.lang.String readerGroupName)Creates a resource representation for use in authorization of actions pertaining to the specified reader group within the specified scope.java.lang.StringofReaderGroupsInScope(java.lang.String scopeName)Creates a resource representation for use in authorization of actions pertaining to the collection of reader groups within the specified scope.java.lang.StringofScope(java.lang.String scopeName)Creates a resource representation for use in authorization of actions pertaining to the specified scope.java.lang.StringofScopes()Creates a resource representation for use in authorization of actions pertaining to the collection of scopes in the system.java.lang.StringofStreamInScope(java.lang.String scopeName, java.lang.String streamName)Creates a resource representation for use in authorization of actions pertaining to the specified stream within the specified scope.java.lang.StringofStreamsInScope(java.lang.String scopeName)Creates a resource representation for use in authorization of actions pertaining to the collection of streams within the specified scope.
-
-
-
Field Detail
-
DOMAIN_PART_SUFFIX
public static final java.lang.String DOMAIN_PART_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
ofScopes
public java.lang.String ofScopes()
Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the collection of scopes in the system.- Specified by:
ofScopesin interfaceAuthorizationResource- Returns:
- a string representing the collections of scopes in the system
-
ofScope
public java.lang.String ofScope(java.lang.String scopeName)
Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the specified scope.- Specified by:
ofScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scope- Returns:
- a string representing the scope with the specified name
-
ofStreamsInScope
public java.lang.String ofStreamsInScope(java.lang.String scopeName)
Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the collection of streams within the specified scope.- Specified by:
ofStreamsInScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scope- Returns:
- a string representing the collection of streams under the scope with the specified name
-
ofStreamInScope
public java.lang.String ofStreamInScope(java.lang.String scopeName, java.lang.String streamName)Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the specified stream within the specified scope.- Specified by:
ofStreamInScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scopestreamName- the name of the stream- Returns:
- a string representing the specified stream within the specified scope
-
ofReaderGroupsInScope
public java.lang.String ofReaderGroupsInScope(java.lang.String scopeName)
Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the collection of reader groups within the specified scope.- Specified by:
ofReaderGroupsInScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scope- Returns:
- a string representing the specified the collection of reader groups
-
ofReaderGroupInScope
public java.lang.String ofReaderGroupInScope(java.lang.String scopeName, java.lang.String readerGroupName)Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the specified reader group within the specified scope.- Specified by:
ofReaderGroupInScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scopereaderGroupName- the name of the reader group- Returns:
- a string representing the specified reader group
-
ofKeyValueTablesInScope
public java.lang.String ofKeyValueTablesInScope(java.lang.String scopeName)
Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the collection of Key-Value tables within the specified scope.- Specified by:
ofKeyValueTablesInScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scope
-
ofKeyValueTableInScope
public java.lang.String ofKeyValueTableInScope(java.lang.String scopeName, java.lang.String keyValueTableName)Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions pertaining to the specified KeyValueTable within the specified scope.- Specified by:
ofKeyValueTableInScopein interfaceAuthorizationResource- Parameters:
scopeName- the name of the scopekeyValueTableName- the name of the KeyValueTable- Returns:
- a string representing the specified kvtable within the specified scope
-
ofInternalStream
public java.lang.String ofInternalStream(java.lang.String scopeName, @NonNull @NonNull java.lang.String streamName)Description copied from interface:AuthorizationResourceCreates a resource representation for use in authorization of actions related to the specified internal stream.- Specified by:
ofInternalStreamin interfaceAuthorizationResource- Parameters:
scopeName- the name of the scopestreamName- the name of the internal stream- Returns:
- a string representing the resource
-
-