com.ibm.tivoli.maximo.oauth.consumer.webclient

Class OAuthConsumerUtil

  • java.lang.Object
    • com.ibm.tivoli.maximo.oauth.consumer.webclient.OAuthConsumerUtil


  • public class OAuthConsumerUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static net.oauth.client.OAuthClient OAUTHCLIENT 
      static java.util.Collection RECOVERABLE_PROBLEMS
      The names of problems from which a consumer can recover by getting a fresh token.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static net.oauth.OAuthAccessor getAccessor(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, net.oauth.OAuthConsumer consumer) 
      static void getAccessToken(javax.servlet.http.HttpServletRequest request, CookieMap cookies, net.oauth.OAuthAccessor accessor) 
      static net.oauth.OAuthConsumer getOAuthConsumer(java.lang.String endPointName, javax.servlet.http.HttpServletRequest request) 
      static void handleException(java.lang.Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, net.oauth.OAuthConsumer consumer) 
      static net.oauth.OAuthAccessor newAccessor(net.oauth.OAuthConsumer consumer, CookieMap cookies) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OAUTHCLIENT

        public static final net.oauth.client.OAuthClient OAUTHCLIENT
      • RECOVERABLE_PROBLEMS

        public static final java.util.Collection RECOVERABLE_PROBLEMS
        The names of problems from which a consumer can recover by getting a fresh token.
    • Constructor Detail

      • OAuthConsumerUtil

        public OAuthConsumerUtil()
    • Method Detail

      • getOAuthConsumer

        public static net.oauth.OAuthConsumer getOAuthConsumer(java.lang.String endPointName,
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws MXException,
                                                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getAccessor

        public static net.oauth.OAuthAccessor getAccessor(javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response,
                                                          net.oauth.OAuthConsumer consumer)
                                                   throws net.oauth.OAuthException,
                                                          java.io.IOException,
                                                          java.net.URISyntaxException
        Throws:
        net.oauth.OAuthException
        java.io.IOException
        java.net.URISyntaxException
      • newAccessor

        public static net.oauth.OAuthAccessor newAccessor(net.oauth.OAuthConsumer consumer,
                                                          CookieMap cookies)
                                                   throws net.oauth.OAuthException
        Throws:
        net.oauth.OAuthException
      • getAccessToken

        public static void getAccessToken(javax.servlet.http.HttpServletRequest request,
                                          CookieMap cookies,
                                          net.oauth.OAuthAccessor accessor)
                                   throws net.oauth.OAuthException,
                                          java.io.IOException,
                                          java.net.URISyntaxException
        Throws:
        net.oauth.OAuthException
        java.io.IOException
        java.net.URISyntaxException
      • handleException

        public static void handleException(java.lang.Exception e,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           net.oauth.OAuthConsumer consumer)
                                    throws java.io.IOException,
                                           javax.servlet.ServletException
        Throws:
        java.io.IOException
        javax.servlet.ServletException