Class ConfigSmtpResource


  • @Path("/config/smtp")
    @Produces("application/json")
    @Consumes("application/json")
    public class ConfigSmtpResource
    extends ConfigBaseResource
    Author:
    Mougang T.Gasmyr
    • Field Summary

      • Fields inherited from class io.jans.configapi.core.rest.BaseResource

        FIELD_VALUE_SEPARATOR, MISSING_ATTRIBUTE_CODE, MISSING_ATTRIBUTE_MESSAGE, TOKEN_DELIMITER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response getSmtpServerConfiguration()  
      jakarta.ws.rs.core.Response removeSmtpConfiguration()  
      jakarta.ws.rs.core.Response setupSmtpConfiguration​(@Valid io.jans.model.SmtpConfiguration smtpConfiguration)  
      jakarta.ws.rs.core.Response testSmtpConfiguration​(@Valid io.jans.model.SmtpTest smtpTest)  
      jakarta.ws.rs.core.Response updateSmtpConfiguration​(@Valid io.jans.model.SmtpConfiguration smtpConfiguration)  
      • Methods inherited from class io.jans.configapi.core.rest.BaseResource

        checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
    • Constructor Detail

      • ConfigSmtpResource

        public ConfigSmtpResource()
    • Method Detail

      • getSmtpServerConfiguration

        @GET
        public jakarta.ws.rs.core.Response getSmtpServerConfiguration()
                                                               throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • setupSmtpConfiguration

        @POST
        public jakarta.ws.rs.core.Response setupSmtpConfiguration​(@Valid
                                                                  @Valid io.jans.model.SmtpConfiguration smtpConfiguration)
                                                           throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • updateSmtpConfiguration

        @PUT
        public jakarta.ws.rs.core.Response updateSmtpConfiguration​(@Valid
                                                                   @Valid io.jans.model.SmtpConfiguration smtpConfiguration)
                                                            throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • testSmtpConfiguration

        @POST
        @Path("/test")
        public jakarta.ws.rs.core.Response testSmtpConfiguration​(@Valid
                                                                 @Valid io.jans.model.SmtpTest smtpTest)
                                                          throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • removeSmtpConfiguration

        @DELETE
        public jakarta.ws.rs.core.Response removeSmtpConfiguration()