Class PortalSSOAuthInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class PortalSSOAuthInterceptor
    extends java.lang.Object
    implements okhttp3.Interceptor
    Since:
    0.1
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface okhttp3.Interceptor

        okhttp3.Interceptor.Chain
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String secret  
      protected java.lang.String username  
    • Constructor Summary

      Constructors 
      Constructor Description
      PortalSSOAuthInterceptor​(java.lang.String username, java.lang.String secret)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected okhttp3.Headers computeHeaders​(okhttp3.Headers headers)  
      okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)  
      • Methods inherited from class java.lang.Object

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

      • secret

        protected final java.lang.String secret
      • username

        protected final java.lang.String username
    • Constructor Detail

      • PortalSSOAuthInterceptor

        public PortalSSOAuthInterceptor​(java.lang.String username,
                                        java.lang.String secret)
    • Method Detail

      • computeHeaders

        protected okhttp3.Headers computeHeaders​(okhttp3.Headers headers)
      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws java.io.IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        java.io.IOException