@Component public class NamespaceIamRoleAuthorizationHelper extends Object
| Constructor and Description |
|---|
NamespaceIamRoleAuthorizationHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermissions(NamespaceEntity namespaceEntity,
Collection<String> requestedIamRoleNames)
Throws AccessDeniedException if the given namespace is not authorized to access any of the given IAM role names.
|
void |
checkPermissions(NamespaceEntity namespaceEntity,
String... requestedIamRoleNames)
Throws AccessDeniedException if the given namespace is not authorized to access any of the given IAM role names.
|
NamespaceIamRoleAuthorizationEntity |
createNamespaceIamRoleAuthorizationEntity(NamespaceIamRoleAuthorizationKey namespaceIamRoleAuthorizationKey,
String iamRoleDescription)
Creates a new NamespaceIamRoleAuthorizationEntity from the given parameters.
|
void |
validateAndTrimNamespaceIamRoleAuthorizationKey(NamespaceIamRoleAuthorizationKey namespaceIamRoleAuthorizationKey)
Validates a namespace IAM role authorization key.
|
public void checkPermissions(NamespaceEntity namespaceEntity, String... requestedIamRoleNames)
namespaceEntity - The namespace entityrequestedIamRoleNames - The requested IAM role namespublic void checkPermissions(NamespaceEntity namespaceEntity, Collection<String> requestedIamRoleNames)
namespaceEntity - The namespace entityrequestedIamRoleNames - The collection of requested IAM role namespublic NamespaceIamRoleAuthorizationEntity createNamespaceIamRoleAuthorizationEntity(NamespaceIamRoleAuthorizationKey namespaceIamRoleAuthorizationKey, String iamRoleDescription)
namespaceIamRoleAuthorizationKey - The namespace IAM role authorization keyiamRoleDescription - The IAM role descriptionpublic void validateAndTrimNamespaceIamRoleAuthorizationKey(NamespaceIamRoleAuthorizationKey namespaceIamRoleAuthorizationKey)
namespaceIamRoleAuthorizationKey - the namespace IAM role authorization keyCopyright © 2021. All rights reserved.