Class AuthFilter<C,​P extends Principal>

    • Constructor Detail

      • AuthFilter

        public AuthFilter()
    • Method Detail

      • authenticate

        protected boolean authenticate​(javax.ws.rs.container.ContainerRequestContext requestContext,
                                       @Nullable C credentials,
                                       String scheme)
        Authenticates a request with user credentials and setup the security context.
        Parameters:
        requestContext - the context of the request
        credentials - the user credentials
        scheme - the authentication scheme; one of BASIC_AUTH, FORM_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH. See SecurityContext
        Returns:
        true, if the request is authenticated, otherwise false