Class MSALSingleClientWrapper
- java.lang.Object
-
- com.microsoft.quickauth.signin.internal.signinclient.MSALSingleClientWrapper
-
- All Implemented Interfaces:
IClientApplication
- Direct Known Subclasses:
MSQASingleSignInClientInternal
public class MSALSingleClientWrapper extends java.lang.Object implements IClientApplication
-
-
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)
-
-
-
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 interfaceIClientApplication
-
signOut
public boolean signOut() throws java.lang.Exception
- Specified by:
signOut
in interfaceIClientApplication
- Throws:
java.lang.Exception
-
signOut
public void signOut(@NonNull com.microsoft.identity.client.ISingleAccountPublicClientApplication.SignOutCallback callback)
- Specified by:
signOut
in interfaceIClientApplication
-
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 interfaceIClientApplication
- 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 interfaceIClientApplication
-
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 interfaceIClientApplication
-
getCurrentAccount
@Nullable public com.microsoft.identity.client.IAccount getCurrentAccount() throws java.lang.Exception
- Specified by:
getCurrentAccount
in interfaceIClientApplication
- Throws:
java.lang.Exception
-
getCurrentAccountAsync
public void getCurrentAccountAsync(@NonNull com.microsoft.identity.client.ISingleAccountPublicClientApplication.CurrentAccountCallback callback)
- Specified by:
getCurrentAccountAsync
in interfaceIClientApplication
-
-