Class ConfigSmtpResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigSmtpResource
-
@Path("/config/smtp") @Produces("application/json") @Consumes("application/json") public class ConfigSmtpResource extends ConfigBaseResource
- Author:
- Mougang T.Gasmyr
-
-
Constructor Summary
Constructors Constructor Description ConfigSmtpResource()
-
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.rest.resource.auth.ConfigBaseResource
getMaxCount
-
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
-
-
-
-
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()
-
-