class DefaultAuthenticationResult implements AuthenticationResult {

    public static AuthenticationResult failed(final DittoHeaders dittoHeaders, final Throwable reasonOfFailure) {
        return new DefaultAuthenticationResult(dittoHeaders, null, checkNotNull(reasonOfFailure, "reasonOfFailure"));
    }

    private  DefaultAuthenticationResult(final DittoHeaders dittoHeaders,
            @Nullable final AuthorizationContext authorizationContext, @Nullable final Throwable reasonOfFailure);

}