|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.resources.ProtectedResource
org.nhindirect.config.resources.CertificateResource
@Component public class CertificateResource
JAX-RS resource for managing certificate resources in the configuration service.
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor Summary | |
|---|---|
CertificateResource()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CertificateResource()
| Method Detail |
|---|
@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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||