Class UserAccessController
java.lang.Object
de.xima.fc.certificate.ms.impl.authorization.UserAccessController
- All Implemented Interfaces:
IUserAccessController
@ApplicationScoped
public class UserAccessController
extends Object
implements IUserAccessController
This class is responsible for checking user access permissions for editing certificates, keystores etc.
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionUserAccessController(AccessChecker accessChecker, UserInfoProvider userInfoProvider) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasCertificatePermission(CertificateEntity certificate, AuthenticatedUser user, PermissionAction action) Checks if the user has permission to perform the specified action on the given certificate entity.booleanhasCertificateSettingsPermission(AuthenticatedUser user, PermissionAction permissionAction) Checks if the user has permission to perform the specified action on the general certificate settings.booleanhasKeyPairPermission(KeyPairEntity keyPair, AuthenticatedUser user, PermissionAction action) Checks if the user has permission to perform the specified action on the given key pair entity.booleanhasKeyStorePermission(KeyStoreEntity keyStore, AuthenticatedUser user, PermissionAction action) Checks if the user has permission to perform the specified action on the given keystore entity.
-
Constructor Details
-
UserAccessController
-
-
Method Details
-
hasCertificatePermission
public boolean hasCertificatePermission(CertificateEntity certificate, AuthenticatedUser user, PermissionAction action) Description copied from interface:IUserAccessControllerChecks if the user has permission to perform the specified action on the given certificate entity.- Specified by:
hasCertificatePermissionin interfaceIUserAccessController- Parameters:
certificate- The certificate entity to checkuser- The user requesting access.action- The action to check permission for.- Returns:
- true if permitted, false otherwise.
-
hasCertificateSettingsPermission
public boolean hasCertificateSettingsPermission(AuthenticatedUser user, PermissionAction permissionAction) Description copied from interface:IUserAccessControllerChecks if the user has permission to perform the specified action on the general certificate settings.- Specified by:
hasCertificateSettingsPermissionin interfaceIUserAccessController- Parameters:
user- The user requesting access.permissionAction- The action to check permission for.- Returns:
- true if permitted, false otherwise.
-
hasKeyPairPermission
public boolean hasKeyPairPermission(KeyPairEntity keyPair, AuthenticatedUser user, PermissionAction action) Description copied from interface:IUserAccessControllerChecks if the user has permission to perform the specified action on the given key pair entity.- Specified by:
hasKeyPairPermissionin interfaceIUserAccessController- Parameters:
keyPair- The key pair entity to check.user- The user requesting access.action- The action to check permission for.- Returns:
- true if permitted, false otherwise.
-
hasKeyStorePermission
public boolean hasKeyStorePermission(KeyStoreEntity keyStore, AuthenticatedUser user, PermissionAction action) Description copied from interface:IUserAccessControllerChecks if the user has permission to perform the specified action on the given keystore entity.- Specified by:
hasKeyStorePermissionin interfaceIUserAccessController- Parameters:
keyStore- The keystore entity to check.user- The user requesting access.action- The action to check permission for.- Returns:
- true if permitted, false otherwise.
-