Interface DomainService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DomainServiceImpl
REST operations for Self Keymaster's domains.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustPoolSize
(@NotNull String key, int poolMaxActive, int poolMinIdle) Adjusts the connection pool to the domain database.void
changeAdminPassword
(@NotNull String key, String password, CipherAlgorithm cipherAlgorithm) Change admin's password for the given domain.Creates a new domain.void
Deletes the domain matching the provided key.void
Notify that the given domain is deployed.list()
Returns the list of defined domains.Returns the domain matching the given key.
-
Method Details
-
list
Returns the list of defined domains.- Returns:
- list of defined domains
-
read
@GET @Path("{key}") @Produces("application/json") Domain read(@NotNull @PathParam("key") @NotNull String key) Returns the domain matching the given key.- Parameters:
key
- key of the domain to be read- Returns:
- domain matching the given key
-
create
Creates a new domain.- Parameters:
domain
- domain to be created- Returns:
- Response object featuring Location header of created domain
-
deployed
@POST @Path("{key}/deployed") @Produces("application/json") void deployed(@NotNull @PathParam("key") @NotNull String key) Notify that the given domain is deployed.- Parameters:
key
- key of domain to be updated
-
changeAdminPassword
@POST @Path("{key}/changeAdminPassword") @Produces("application/json") void changeAdminPassword(@NotNull @PathParam("key") @NotNull String key, @QueryParam("password") String password, @QueryParam("cipherAlgorithm") CipherAlgorithm cipherAlgorithm) Change admin's password for the given domain.- Parameters:
key
- key of domain to be updatedpassword
- encoded password valuecipherAlgorithm
- password cipher algorithm
-
adjustPoolSize
@POST @Path("{key}/adjustPoolSize") @Produces("application/json") void adjustPoolSize(@NotNull @PathParam("key") @NotNull String key, @QueryParam("poolMaxActive") int poolMaxActive, @QueryParam("poolMinIdle") int poolMinIdle) Adjusts the connection pool to the domain database.- Parameters:
key
- key of domain to be updatedpoolMaxActive
- database pool max sizepoolMinIdle
- database pool max size
-
delete
@DELETE @Path("{key}") @Produces("application/json") void delete(@NotNull @PathParam("key") @NotNull String key) Deletes the domain matching the provided key.- Parameters:
key
- key of domain to be deleted
-