@Component public class CertificateResource extends ProtectedResource
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor and Description |
|---|
CertificateResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addCertificate(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Certificate cert)
Adds a certificate to the system.
|
javax.ws.rs.core.Response |
getAllCertificates()
Gets all certificates in the system.
|
javax.ws.rs.core.Response |
getCertificatesByOwner(String owner)
Gets all certificates for a specific owner.
|
javax.ws.rs.core.Response |
getCertificatesByOwnerAndThumbprint(String owner,
String thumbprint)
Gets a certificate for a specific owner and thumbprint.
|
javax.ws.rs.core.Response |
removeCertificatesByIds(String ids)
Deletes certificates by system id.
|
javax.ws.rs.core.Response |
removeCertificatesByOwner(String owner)
Deletes all certificate for a specific owner.
|
void |
setCertificateDao(org.nhindirect.config.store.dao.CertificateDao certDao)
Sets the certificate Dao.
|
@Autowired public void setCertificateDao(org.nhindirect.config.store.dao.CertificateDao certDao)
certDao - The certificate Daopublic javax.ws.rs.core.Response getAllCertificates()
public javax.ws.rs.core.Response getCertificatesByOwner(String owner)
owner - The owner to retrieive certificates for.public javax.ws.rs.core.Response getCertificatesByOwnerAndThumbprint(String owner, String thumbprint)
owner - The owner or the certificate.thumbprint - The thubmprint of the certificates.public javax.ws.rs.core.Response addCertificate(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Certificate cert)
uriInfo - Injected URI context used for building the location URI.cert - The certificate to add.public javax.ws.rs.core.Response removeCertificatesByIds(String ids)
ids - Comma delimited list of system ids to delete.public javax.ws.rs.core.Response removeCertificatesByOwner(String owner)
owner - The owner of the certificate.Copyright © 2015. All Rights Reserved.