Class UserAuthorizer.UserCredentialsListener

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String userId  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserCredentialsListener​(java.lang.String userId)
      Construct new listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onChanged​(OAuth2Credentials credentials)
      Handle change event by rewriting to token store.
      • Methods inherited from class java.lang.Object

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

      • userId

        private final java.lang.String userId
    • Constructor Detail

      • UserCredentialsListener

        public UserCredentialsListener​(java.lang.String userId)
        Construct new listener.
    • Method Detail

      • onChanged

        public void onChanged​(OAuth2Credentials credentials)
                       throws java.io.IOException
        Handle change event by rewriting to token store.
        Specified by:
        onChanged in interface OAuth2Credentials.CredentialsChangedListener
        Parameters:
        credentials - The updated credentials instance
        Throws:
        java.io.IOException - My be thrown by listeners if saving credentials fails.