Class PublicKeyResource
java.lang.Object
com.illumon.iris.db.v2.permissions.rs.PublicKeyResource
@Path("/publickey")
@Consumes("application/json")
@Produces("application/json")
public class PublicKeyResource
extends Object
This is the Acl PublicKey resource, defines all REST operations supported for /acl/publickey uri. Produces and
consumes
MediaType.APPLICATION_JSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.shadow.resteasy.javax.ws.rs.core.Response
addUserPublicKey
(UserPublicKey userPublicKey) Add publickey for user with optional comment in the ACL databaseio.deephaven.shadow.resteasy.javax.ws.rs.core.Response
deleteUserPublicKey
(String user, String encodedStr, String algorithm, String provider) Deletes publickey for user from the ACL database if it exists
-
Constructor Details
-
PublicKeyResource
public PublicKeyResource()
-
-
Method Details
-
addUserPublicKey
@POST public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response addUserPublicKey(@NotNull UserPublicKey userPublicKey) throws DbAclCheckedException Add publickey for user with optional comment in the ACL database- Parameters:
userPublicKey
- The user public key entity object as passed in the request- Returns:
Response
with status code ofResponse.Status.CREATED
- Throws:
DbAclCheckedException
- upon failure to add user public key acl
-
deleteUserPublicKey
@DELETE @Path("/{user}") public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response deleteUserPublicKey(@PathParam("user") String user, @QueryParam("encodedStr") String encodedStr, @QueryParam("algorithm") String algorithm, @QueryParam("provider") String provider) throws DbAclCheckedException Deletes publickey for user from the ACL database if it exists- Parameters:
user
- user who is mapped to public key, this is expected to come from key fileencodedStr
- The encoded public key from key filealgorithm
- The algorithm used to encode example (DSA, RSA)provider
- Optional provider used to encode / decode the key file, if null Default provider will be used- Returns:
Response
with status code ofResponse.Status.NO_CONTENT
- Throws:
DbAclCheckedException
- upon failure to add user public key acl
-