Class QwacCertificateService
- java.lang.Object
-
- de.adorsys.psd2.xs2a.web.filter.holder.QwacCertificateService
-
@Service public class QwacCertificateService extends Object
-
-
Constructor Summary
Constructors Constructor Description QwacCertificateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisApplicable(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String encodedTppQwacCert)Checks if certificate is applicable
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String encodedTppQwacCert) throws IOExceptionChecks if certificate is applicable- Parameters:
request- is incoming HttpServletRequestresponse- is outcoming HttpServletResponseencodedTppQwacCert- is a certificate obtained from request header 'tpp-qwac-certificate'- Returns:
- true, if certificate is not expired, can be parsed, contains appropriate roles to access resource; false otherwise
- Throws:
IOException- if certificate is expired
-
-