Class CertificateDtoMapper

java.lang.Object
com.irurueta.authserver.authorization.api.web.x509.CertificateDtoMapper

@Component public class CertificateDtoMapper extends Object
Maps the certificate bindings of the domain onto the DTO generated from the contract. The account a binding belongs to is not part of the contract.
  • Constructor Details

    • CertificateDtoMapper

      public CertificateDtoMapper()
  • Method Details

    • toResponse

      public Certificate toResponse(CertificateBinding binding)
      Maps a binding to its public view.
      Parameters:
      binding - the binding.
      Returns:
      its public view.
    • toResponses

      public List<Certificate> toResponses(List<CertificateBinding> bindings)
      Maps several bindings, keeping their order.
      Parameters:
      bindings - the bindings.
      Returns:
      their public views.