Class QwacCertificateService


  • @Service
    public class QwacCertificateService
    extends Object
    • Constructor Detail

      • QwacCertificateService

        public QwacCertificateService()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    String encodedTppQwacCert)
                             throws IOException
        Checks if certificate is applicable
        Parameters:
        request - is incoming HttpServletRequest
        response - is outcoming HttpServletResponse
        encodedTppQwacCert - 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