Package fr.gouv.vitam.security.internal.rest.service

# Class PermissionService

java.lang.Object
fr.gouv.vitam.security.internal.rest.service.PermissionService

public class PermissionService extends Object
Handles personal certificate permission check

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PermissionService(PersonalCertificatePermissionConfig personalCertificatePermissionConfig)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IsPersonalCertificateRequiredModel`
  `isPersonalCertificateRequiredForPermission(String permission)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PermissionService

    public PermissionService(PersonalCertificatePermissionConfig personalCertificatePermissionConfig)

- ## Method Details

  - ### isPersonalCertificateRequiredForPermission

    public IsPersonalCertificateRequiredModel isPersonalCertificateRequiredForPermission(String permission)
    Parameters:
      `permission` - the endpoint permission
    Returns:
      whether endpoin permission requires personal certificate, ignores it, or unknown (missing in configuration).