Package com.soffid.iam.service
Class CertificateValidationServiceBase
- java.lang.Object
-
- com.soffid.iam.service.CertificateValidationServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.CertificateValidationService
- Direct Known Subclasses:
CertificateValidationServiceImpl
public abstract class CertificateValidationServiceBase extends Object implements com.soffid.iam.service.CertificateValidationService
Spring Service base class for
see com.soffid.iam.service.CertificateValidationServicecom.soffid.iam.service.CertificateValidationService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description CertificateValidationServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.Account
getCertificateAccount(List<X509Certificate> certs)
com.soffid.iam.api.User
getCertificateUser(List<X509Certificate> certs)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.Collection<X509Certificate>
getRootCertificateList()
protected abstract com.soffid.iam.api.Account
handleGetCertificateAccount(List<X509Certificate> certs)
protected abstract com.soffid.iam.api.User
handleGetCertificateUser(List<X509Certificate> certs)
protected abstract Collection<X509Certificate>
handleGetRootCertificateList()
protected abstract boolean
handleValidateCertificate(List<X509Certificate> certs)
boolean
validateCertificate(List<X509Certificate> certs)
-
-
-
Method Detail
-
validateCertificate
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public boolean validateCertificate(List<X509Certificate> certs) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
validateCertificate
in interfacecom.soffid.iam.service.CertificateValidationService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleValidateCertificate
protected abstract boolean handleValidateCertificate(List<X509Certificate> certs) throws Exception
- Throws:
Exception
-
getCertificateAccount
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Account getCertificateAccount(List<X509Certificate> certs) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getCertificateAccount
in interfacecom.soffid.iam.service.CertificateValidationService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetCertificateAccount
protected abstract com.soffid.iam.api.Account handleGetCertificateAccount(List<X509Certificate> certs) throws Exception
- Throws:
Exception
-
getCertificateUser
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.User getCertificateUser(List<X509Certificate> certs) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getCertificateUser
in interfacecom.soffid.iam.service.CertificateValidationService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetCertificateUser
protected abstract com.soffid.iam.api.User handleGetCertificateUser(List<X509Certificate> certs) throws Exception
- Throws:
Exception
-
getRootCertificateList
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<X509Certificate> getRootCertificateList() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getRootCertificateList
in interfacecom.soffid.iam.service.CertificateValidationService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetRootCertificateList
protected abstract Collection<X509Certificate> handleGetRootCertificateList() throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-