Class CertificateController

java.lang.Object
com.irurueta.authserver.authorization.api.web.x509.CertificateController
All Implemented Interfaces:
CertificatesApi

@RestController public class CertificateController extends Object implements CertificatesApi
Manages the client certificates bound to the authenticated account (the operations of the contract). Binding and unbinding change how the account signs in, so both call StepUpGuard first, as unlinking an identity does. The controller exists whether or not the sign-in with a certificate is enabled, so certificates can be bound before it is turned on.
  • Field Details

    • currentAccountResolver

      private final CurrentAccountResolver currentAccountResolver
      Resolves the account of the request.
    • listCertificatesUseCase

      private final ListCertificatesUseCase listCertificatesUseCase
      Lists the certificates of an account.
    • bindCertificateUseCase

      private final BindCertificateUseCase bindCertificateUseCase
      Binds a certificate.
    • unbindCertificateUseCase

      private final UnbindCertificateUseCase unbindCertificateUseCase
      Unbinds a certificate.
    • stepUpGuard

      private final StepUpGuard stepUpGuard
      Requires a recent multi-factor sign-in before a certificate is bound or unbound.
    • pemCertificateReader

      private final PemCertificateReader pemCertificateReader
      Reads the certificate of a bind request.
    • certificateDtoMapper

      private final CertificateDtoMapper certificateDtoMapper
      Maps the bindings onto the contract's DTOs.
  • Constructor Details

    • CertificateController

      public CertificateController()
  • Method Details