Class AbstractOAuthService

    • Field Detail

      • LOG

        protected static final Logger LOG
    • Constructor Detail

      • AbstractOAuthService

        public AbstractOAuthService()
    • Method Detail

      • setWriteOptionalParameters

        public void setWriteOptionalParameters​(boolean write)
      • isWriteOptionalParameters

        public boolean isWriteOptionalParameters()
      • setMessageContext

        @Context
        public void setMessageContext​(MessageContext context)
      • injectContextIntoOAuthProviders

        protected void injectContextIntoOAuthProviders()
      • getQueryParameters

        protected javax.ws.rs.core.MultivaluedMap<String,​String> getQueryParameters()
      • checkTransportSecurity

        protected void checkTransportSecurity()
        HTTPS is the default transport for OAuth 2.0 services. By default this method will issue a warning for open endpoints
      • reportInvalidRequestError

        protected void reportInvalidRequestError​(String errorDescription)
      • reportInvalidRequestError

        protected void reportInvalidRequestError​(String errorDescription,
                                                 javax.ws.rs.core.MediaType mt)
      • reportInvalidRequestError

        protected void reportInvalidRequestError​(OAuthError entity)
      • reportInvalidRequestError

        protected void reportInvalidRequestError​(OAuthError entity,
                                                 javax.ws.rs.core.MediaType mt)
      • setBlockUnsecureRequests

        public void setBlockUnsecureRequests​(boolean blockUnsecureRequests)
        HTTPS is the default transport for OAuth 2.0 services, this property can be used to block all the requests issued over HTTP
        Parameters:
        blockUnsecureRequests - if set to true then HTTP requests will be blocked