Package io.gravitee.am.service.impl
Class CertificateServiceImpl
java.lang.Object
io.gravitee.am.service.impl.CertificateServiceImpl
- All Implemented Interfaces:
CertificateService
@Component
@Primary
public class CertificateServiceImpl
extends Object
implements CertificateService
- Author:
- Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Certificate>This method is used to create a default certificate (mainly used when creating a new domain).io.reactivex.rxjava3.core.Single<Certificate>create(String domain, NewCertificate newCertificate, User principal, boolean isSystem) This method is used to create a new certificate.io.reactivex.rxjava3.core.Completableio.reactivex.rxjava3.core.Flowable<Certificate>findAll()io.reactivex.rxjava3.core.Flowable<Certificate>findByDomain(String domain) io.reactivex.rxjava3.core.Maybe<Certificate>io.reactivex.rxjava3.core.Single<Certificate>Request the generation of a new system certificate for the given domainio.reactivex.rxjava3.core.Single<Certificate>update(String domain, String id, UpdateCertificate updateCertificate, User principal) io.reactivex.rxjava3.core.CompletableupdateExpirationDate(String certificateId, Date expirationDate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gravitee.am.service.CertificateService
create, create, delete, update
-
Field Details
-
DEFAULT_CERTIFICATE_PLUGIN
- See Also:
-
-
Constructor Details
-
CertificateServiceImpl
public CertificateServiceImpl()
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceCertificateService
-
findByDomain
- Specified by:
findByDomainin interfaceCertificateService
-
findAll
- Specified by:
findAllin interfaceCertificateService
-
create
public io.reactivex.rxjava3.core.Single<Certificate> create(String domain, NewCertificate newCertificate, User principal, boolean isSystem) Description copied from interface:CertificateServiceThis method is used to create a new certificate. If the isSystem parameter is set to true, the certificate is a Default certificate generate during the domain creation- Specified by:
createin interfaceCertificateService- Returns:
-
update
public io.reactivex.rxjava3.core.Single<Certificate> update(String domain, String id, UpdateCertificate updateCertificate, User principal) - Specified by:
updatein interfaceCertificateService
-
delete
- Specified by:
deletein interfaceCertificateService
-
updateExpirationDate
public io.reactivex.rxjava3.core.Completable updateExpirationDate(String certificateId, Date expirationDate) - Specified by:
updateExpirationDatein interfaceCertificateService
-
create
Description copied from interface:CertificateServiceThis method is used to create a default certificate (mainly used when creating a new domain).- Specified by:
createin interfaceCertificateService- Returns:
-
rotate
Description copied from interface:CertificateServiceRequest the generation of a new system certificate for the given domain- Specified by:
rotatein interfaceCertificateService- Returns:
- the new Certificate
-