Class MSALSingleClientWrapper

    • Constructor Summary

      Constructors 
      Constructor Description
      MSALSingleClientWrapper​(com.microsoft.identity.client.ISingleAccountPublicClientApplication signClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void acquireToken​(android.app.Activity activity, java.lang.String[] scopes, com.microsoft.identity.client.AuthenticationCallback callback)  
      com.microsoft.identity.client.IAuthenticationResult acquireTokenSilent​(com.microsoft.identity.client.IAccount account, java.lang.String[] scopes)  
      void acquireTokenSilentAsync​(com.microsoft.identity.client.IAccount account, java.lang.String[] scopes, com.microsoft.identity.client.SilentAuthenticationCallback callback)  
      com.microsoft.identity.client.IAccount getCurrentAccount()  
      void getCurrentAccountAsync​(com.microsoft.identity.client.ISingleAccountPublicClientApplication.CurrentAccountCallback callback)  
      void signIn​(android.app.Activity activity, java.lang.String loginHint, java.lang.String[] scopes, com.microsoft.identity.client.AuthenticationCallback callback)  
      boolean signOut()  
      void signOut​(com.microsoft.identity.client.ISingleAccountPublicClientApplication.SignOutCallback callback)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MSALSingleClientWrapper

        public MSALSingleClientWrapper​(@NonNull
                                       com.microsoft.identity.client.ISingleAccountPublicClientApplication signClient)
    • Method Detail

      • signIn

        public void signIn​(@NonNull
                           android.app.Activity activity,
                           @Nullable
                           java.lang.String loginHint,
                           @NonNull
                           java.lang.String[] scopes,
                           @NonNull
                           com.microsoft.identity.client.AuthenticationCallback callback)
        Specified by:
        signIn in interface IClientApplication
      • signOut

        public boolean signOut()
                        throws java.lang.Exception
        Specified by:
        signOut in interface IClientApplication
        Throws:
        java.lang.Exception
      • signOut

        public void signOut​(@NonNull
                            com.microsoft.identity.client.ISingleAccountPublicClientApplication.SignOutCallback callback)
        Specified by:
        signOut in interface IClientApplication
      • acquireTokenSilent

        public com.microsoft.identity.client.IAuthenticationResult acquireTokenSilent​(@NonNull
                                                                                      com.microsoft.identity.client.IAccount account,
                                                                                      @NonNull
                                                                                      java.lang.String[] scopes)
                                                                               throws java.lang.Exception
        Specified by:
        acquireTokenSilent in interface IClientApplication
        Throws:
        java.lang.Exception
      • acquireTokenSilentAsync

        public void acquireTokenSilentAsync​(@NonNull
                                            com.microsoft.identity.client.IAccount account,
                                            @NonNull
                                            java.lang.String[] scopes,
                                            @NonNull
                                            com.microsoft.identity.client.SilentAuthenticationCallback callback)
        Specified by:
        acquireTokenSilentAsync in interface IClientApplication
      • acquireToken

        public void acquireToken​(@NonNull
                                 android.app.Activity activity,
                                 @NonNull
                                 java.lang.String[] scopes,
                                 @NonNull
                                 com.microsoft.identity.client.AuthenticationCallback callback)
        Specified by:
        acquireToken in interface IClientApplication
      • getCurrentAccount

        @Nullable
        public com.microsoft.identity.client.IAccount getCurrentAccount()
                                                                 throws java.lang.Exception
        Specified by:
        getCurrentAccount in interface IClientApplication
        Throws:
        java.lang.Exception
      • getCurrentAccountAsync

        public void getCurrentAccountAsync​(@NonNull
                                           com.microsoft.identity.client.ISingleAccountPublicClientApplication.CurrentAccountCallback callback)
        Specified by:
        getCurrentAccountAsync in interface IClientApplication