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
-
-
Field Summary
-
Fields inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
DEFAULT_LIST_SIZE, DEFAULT_LIST_START_INDEX, DEFAULT_MAX_COUNT, READ_ACCESS, WRITE_ACCESS
-
-
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()
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, checkResourceNotNull, createSearchRequest, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
getSmtpServerConfiguration
@GET public jakarta.ws.rs.core.Response getSmtpServerConfiguration()
-
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() throws io.jans.util.security.StringEncrypter.EncryptionException
- Throws:
io.jans.util.security.StringEncrypter.EncryptionException
-
removeSmtpConfiguration
@DELETE public jakarta.ws.rs.core.Response removeSmtpConfiguration()
-
-