Class MockAuthentication


  • public class MockAuthentication
    extends java.lang.Object
    Mock authentication.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • isAuthenticated

        public boolean isAuthenticated()
        Indicates if authenticated.
        Returns:
        true if authenticated.
      • authenticate

        public void authenticate​(MockCredentials credentials,
                                 java.util.function.Consumer<java.lang.Throwable> completion)
        Undertakes authentication.
        Parameters:
        credentials - MockCredentials.
        completion - Optional completion listener.
      • logout

        public void logout​(java.util.function.Consumer<java.lang.Throwable> completion)
        Undertakes logout.
        Parameters:
        completion - Optional completion listener.